
lponthepc
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by lponthepc
-
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Danp2, all I am doing is starting up Chrome from a script... that's it. Why, sometime it starts ok, and sometime I get the errors that I sent to you... How do you all just start up Chrome from a script? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Why some time, does chrome fail to start... I get this error code: "__WD_Post: StatusCode=404; ResponseText={"value":{"error":"invalid session id","message":"invalid session id","stacktrace" And when you do get this error, how can you get an alert, an stop the rest of the script from running??? Also, how can you stop Chrome from coming up and saying... "Chrome is being controlled by automated test software"... with the "data;, tab. I never programmed it to do that in my script... So where does the "data;," tab come from...? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Hello Dan2, I used this function and I get an error. I am trying to get the content from a table... This is my error... Unable to locate an element with the xpath expression 14d18d66-2e47-4995-b669-3bc9ed9d1dbc/tbody/tr because of the following error:\nSyntaxError: Failed to execute 'evaluate' on 'Document': The string '14d18d66-2e47-4995-b669-3bc9ed9d1dbc/tbody/tr' is not a valid XPath expression. This is what I use to call the function... $sTableV = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//table[@class='"&$sTable_Class&"']") _ArrayDisplay(_WD_GetTableContent($sSession, $sTableV, "##")) FindElement returns the element, but when I pass that element to GetTableContent I get the error above... so you can see the guid appended to the /tbody/tr... what am I doing wrong...??? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Hello Mr. Danp2, can you tell me how you can get a table, and go through all of the records in the td of the table...? Using IE you can get the collection with _IETagNameGetCollection or _IEFrameGetCollection... is there any method to traverse a table in Chrome...??? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
-
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Hello Dan, I have a table of reports... how can I access the values in the table and click on the "View" link for the report that I want using the Chrome webdriver. Please see attachment... -
WebDriver UDF - Help & Support
lponthepc replied to Danp2's topic in AutoIt General Help and Support
Hello Danp2, you mentioned _WD_ElementOptionSelect, but I am trying to select an item in an "ul" unordered list. Can you use this for that ... also you make a mention of you added _WD_ElementOptionSelect in wd_core.au3, but I don't see it in the file... no header description or anything... -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Hello Danp2, I was talking about to make a donation... Also, how can you select a particular item in a list using the Chrome driver? I saw an example and can't relocate it again... -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Thank you sir... where can we go to contribute? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Hello Danp2, you mention in the header description of the _WD_WaitElement... "See defined constant $_WD_LOCATOR_* for allowed values". I am just missing it... but where is the $_WD_LOCATOR constant defined, so that I can see the allowed values, please? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
-
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
In my script here for Chrome... Sleep(3000) $sReportOpt = _WD_FindElement($sSession,$_WD_LOCATOR_ByXPath,"//a[@class='menu-icon-report']") _WD_ElementAction($sSession, $sReportOpt, 'click') My _WD_ElementAction creates a new tab... how do I attach to that new tab that was created when this method is executed??? And then when I am done with this tab, how do I close it??? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
Does anyone have an example using the Chrome driver, on how do you click on a link to download a file, and access that file name to rename it??? All through the chrome webdriver??? -
WebDriver UDF (W3C compliant version) - 2024/09/21
lponthepc replied to Danp2's topic in AutoIt Example Scripts
If I use the chrome driver and click on a link in my script for a website, and that link creates another tab, how can I attach to the new tab that was created using the chrome driver??? Also, is there any documentation for the chrome driver methods??? Like _WD_CreateSession($sDesiredCapabilities='{}') _WD_DeleteSession($sSession) _WD_Status() _WD_Timeouts($sSession, $sTimeouts = '') _WD_Navigate($sSession, $sURL) _WD_Action($sSession, $sCommand) _WD_Window($sSession, $sCommand, $sOption = '') etc... I have found no documentation for these methods??? Can anyone help???