Search the Community
Showing results for tags 'xpath'.
-
How should I be attempting to click this link? <span id="x2m8_R-s" class="s_22 s-text">Walk In</span> If I double click the Walk$nbsp;In the text reads Walk In. How can I search for this text? I have tried a several different ways with no luck. Here are a few; $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, '//span[text()="Walk${nbsp}In"]') $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//span[translate(text(), '\u00a0', ' ') = 'Walk In']&q
-
I am using web driver and xpaths to automate chrome. I am able to edit everything I need to until I get these pop ups. Then when I try to find the xpath it act like it does not exist. This code below is working to find input fields on the main page of the site. But, if I try the same thing for ones in the popover it will not find it. 😕 $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[substring(@id, string-length(@id) - string-length('_3') + 1 ) = '_3']") _WD_ElementAction($sSession, $sElement, 'value', "TEST") Here is the html An
-
Hey guys, I am creating my very first script that automates a browser (I usually work with program installs and database automation) and have come across an issue that I am totally stumped on. I need to click an element that gives me a drop down list box but the Xpath to the element changes with every instance of chrome I start... I have tried selecting the class, rect, and path but no luck. It never finds the element. (I could be doing this wrong since I am not good at HTML) Element I need to select: This is the Xpath for the last 3 instances of chrome I have run the sc
-
We can select elements in IE using their IDs as below. Local $oDiv = _IEGetObjById($oIE, "x-auto-16-input") But to one button in the webpage, there is no ID to it. In selenium we have option to select this element using the CssSelector and clicked the button using below code in c# selenium. driver.FindElement(By.CssSelector("button.x-btn-text")).Click(); What is the alternative for this in AUtoIT?
-
FF.au3 how to check if element is focused?
milos83 posted a topic in AutoIt General Help and Support
How can I check if element is focused in Firefox using FF.au3 UDF? This is my try: I have prepared a function that checks if the object is focused: _FFCmd('FFau3.isfocused=function isfocused(a){try{return (a === document.activeElement)}catch(e){return}}') $oElm = _FFXPath("//*[@id='someId']") ConsoleWrite(_FFIsFocused($oElm)) Func _FFIsFocused($sElement = "") Local $isFoc = _FFCmd("FFau3.isfocused(" & $sElement & ")") Return $isFoc EndFunc ;==>_FFIsFocused Now, the javascript part is- 2 replies
-
- ff.au3
- javascript
-
(and 2 more)
Tagged with:
-
Hello Dears, I'm trying to get the SIM card ICC ID number through the system using FF.au3. I have read the description of the UDF but I'm stuck on the query page after login. I have also tried to refresh the page to get the new XPath (hopelessly), but couldn't go any further. I'm basically trying to: Login to the system Click on the site map After site map opens, go to customer care Then change subscriber information Input the MSISDN (phone number) of subscriber and submit Get the SIM card ICC ID information and proceed to the next screen HotKeySet(
-
Hello AuotIT MVPs, Good day! Can someone help me how to convert mathml tags to gif? Sorry I don't know much about AuoIT scripting as I'm on the process of learning it. Here's the sample MathML tags in XML. <?xml version="1.0" encoding="utf-8"?> <doc> <title lang="en">Basic MathML</title> <sec> <sectitle>Introduction</sectitle> <p>Here is a sample MathML:</p> <p> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mstyle> <mi>f</mi> <mrow> <mo>(</mo> <mi>a</mi