skip to Main Content

Html – XPath to target first ancestor tag

Some HTML: <div> <div> <button> <svg xmlns="http://www.w3.org/2000/svg"> <path d="x" /> </svg> </button> </div> <div> <button> <!-- I want this --> <svg xmlns="http://www.w3.org/2000/svg"> <path d="y" /> <!-- I have this --> </svg> </button> </div> </div> I have the data (y) to…

VIEW QUESTION

Extract SOAP body from Envolope request inside azure logic app action

I have a Logic app (LA) that have an http trigger. To the LA, I send a SOAP request similar to this: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"></SOAP-ENV:Header> <SOAP-ENV:Body> <tns:Order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://test.com"> <name>AAAA</name> <id>1234</id> <OrderType>new</OrderType> </tns:Order>…

VIEW QUESTION

How to grab an HTML file with php XPath

I have the following portion of an HTML file: <span class="type">Servers:</span> <li class="server"> <span class="bullet">-</span> <span class="label"></span> (19345) <ul class="components"> <span class="type">Components:</span> <li class="component"> <span class="bullet">+</span> <span class="label">WebSphere:APPLICATION_SERVER</span> (18234) <ul class="applications"> <span class="type">Applications:</span> <li class="application"> <span class="bullet">+</span> <span class="label">Ipostmutuaintra</span> (981)…

VIEW QUESTION

html Element not clickable via Java Selenium "jsExecutor"

I have the following JS HTML Element: document.querySelector('[value="fixedsumcredit_kp"]') <input id=​"-0198e3aa-d2b1-46ce-bdf0-192e60662cd3-fixedsumcredit_kp" type=​"radio" name=​"-0198e3aa-d2b1-46ce-bdf0-192e60662cd3" value=​"fixedsumcredit_kp" style=​"height:​ 100%;​ opacity:​ 0;​ position:​ absolute;​ width:​ 100%;​ top:​ 0px;​ left:​ 0px;​ z-index:​ 1;​ cursor:​ pointer;​ -webkit-tap-highlight-color:​ rgba(255, 255, 255, 0)​;​">​ I tried to click it via…

VIEW QUESTION

Css – Finding nested element using Xpath in Selenium not working

given the following site and locators: https://ultimateqa.com/automation XPATH CONTAINER = (By.XPATH, '//ul[@class="bottom-nav"]') MENU = (By.XPATH, '//li[contains(@class, "menu-item")]') CSS BOTTOM_NAV = (By.CSS_SELECTOR, '.bottom-nav') MENU_ITEM = (By.CSS_SELECTOR, '.menu-item') I need to find inside the BOTTOM_NAV the number of MENU_ITEMS. When using nested…

VIEW QUESTION
Back To Top
Search