This topic is now closed to further replies.
Recently Browsing 0 members
No registered users viewing this page.
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 script with:
//*[@id="highcharts-5bp9crq-8"]/svg/g/g/rect //*[@id="highcharts-fiw9szv-8"]/svg/g/g/rect //*[@id="highcharts-5szkmx8-8"]/svg/g/g/rect As you can see the path changes every time.
How I am trying to select the element:
;Check for box element _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='highcharts-5bp9crq-8']/svg/g/g") MsgBox(0, "", "check for timeout") $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='highcharts-5bp9crq-8']/svg/g/g") _WD_ElementAction($sSession, $sElement, 'click') Maybe someone has come across this before and found a work around without using mouseclick()
Thanks guys, hopefully I am just very overlooking something simple and can be pointed to the right solution.
Side Note: I wish I could share the webpage entirety, but it has sensitive information with my agency that I cannot share. If you need more, just let me know and I will try and post as much as I can.
1) I want to create a FF web page in background... i want to say a web page that can't be seen in the application bar but only in Windows Task Manager...
maybe using __FFStartProcess? in fact i tried to use it but the parameter "hide" only can minimize the page, but not put it in background...
2) After creating this hide page, i would to open a macro of the iMacros addon, always all in hide mode...
it is possible to do it?
anybody can help me?
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?
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:
After a lot of try/fails I inserted an alert box in order to display the object being compared.
Here is what I got
The focused object is: [object XULElement]
The object that I send for comparing is [object HTMLInputElement]
Why is that?