Danp2 Posted November 14, 2018 Author Share Posted November 14, 2018 (edited) @bubbyw Can you give more info, such as the output from the webdriver console or the Scite output panel? Edit: I took a look at this and it appears that the following change to _WD_ElementAction fixes this -- ; $sResponse = __WD_Post($_WD_BASE_URL & ":" & $_WD_PORT & "/session/" & $sSession & "/element/" & $sElement & "/" & $sCommand, '{"id":"' & $sElement & '", "text":"' & $sOption & '", "value":' & $sSplitValue & '}') $sResponse = __WD_Post($_WD_BASE_URL & ":" & $_WD_PORT & "/session/" & $sSession & "/element/" & $sElement & "/" & $sCommand, '{"id":"' & $sElement & '", "text":"' & $sOption & '"}') You'll also need to escape the backslash, like this -- "test.domain\\user" WARNING -- I have not tested this change extensively, so it may break something else. Appreciate feedback from anyone with your results. Edited November 15, 2018 by Danp2 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
orbs Posted November 15, 2018 Share Posted November 15, 2018 (edited) @Danp2, thank you for this UDF, it's great! i am using latest version of Chrome and of chromedriver.exe, and facing a weird issue - a piece of JavaScript that i execute manually as a "snippet" works correctly, but when i run it via _WD_ExecuteScript(), it fails. this is the snippet: var items = Array.prototype.slice.call( document.querySelectorAll('*') ).map(function(element) { var listeners = getEventListeners(element); return { element: element, listeners: Object.keys(listeners).map(function(k) { return { event: k, listeners: listeners[k] }; }) }; }).filter(function(item) { return item.listeners.length; }); console.log(items.length); the issue involves the getEventListeners function - it says the the function is not defined: [1542316368.842][INFO]: RESPONSE ExecuteScript unknown error: getEventListeners is not defined (Session info: chrome=70.0.3538.102) this is a fully functional reproducer: #include "wd_core.au3" #include "wd_helper.au3" _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\WebDrive_log.txt' & '"') $_WD_DEBUG = True _WD_Startup() Global $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true }}}}' Global $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, 'http://google.com') _WD_ExecuteScript($sSession, FileRead(@ScriptDir & '\script.js')) _WD_DeleteSession($sSession) _WD_Shutdown() to reproduce, save the JavaScript file as "script.js" in the same folder as the reproducer. run the reproducer and observer the log file. any ideas? Edited November 15, 2018 by orbs Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration -  literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff  Link to comment Share on other sites More sharing options...
Danp2 Posted November 15, 2018 Author Share Posted November 15, 2018 Hi @orbs Quote $_WD_DEBUG = True There was a recent change where this now uses an enum instead of true/false, so you may want to update your code. Quote getEventListeners is not defined I found this issue, but it's been sitting for a few years with no activity. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
orbs Posted November 15, 2018 Share Posted November 15, 2018 yeah, i saw this one, and several other which seem to have been related but offered no solution. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration -  literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff  Link to comment Share on other sites More sharing options...
orbs Posted November 15, 2018 Share Posted November 15, 2018 a workaround, perhaps? can the WebDriver, instead of directly executing the JavaScript, manipulate the DevTools UI "snippets" section to insert and execute the JavaScript? Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration -  literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff  Link to comment Share on other sites More sharing options...
Danp2 Posted November 15, 2018 Author Share Posted November 15, 2018 I don't think that will work. See http://chromedriver.chromium.org/help/devtools-window-keeps-closing Can you elaborate on how you would use this information? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
orbs Posted November 16, 2018 Share Posted November 16, 2018 18 hours ago, Danp2 said: Can you elaborate on how you would use this information? given that the troublesome function works directly from the "snippets" UI, i would use the WebDriver to implant the JavaScript and run it from there, instead of using _WD_ExecuteScript(). Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration -  literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff  Link to comment Share on other sites More sharing options...
YUK Posted November 25, 2018 Share Posted November 25, 2018 So, I am very new to autoit and I did automatically maneuver through websites by finding the location of an element and then doing a left-click. However, now I am facing a form which changes the location of some buttons depending on how long my entry is. For example, I am trying to click on buttons on the following page: https://www.shirtee.com/en/designer/?id=1140%2F Based on the wd_demo I can open the chrome or firefox browser, but I am not able to click on any buttons. Tried different things but nothing worked for the last week, mainly as I am lacking some good sources that explain the wd functions here to me. So, I took the wd_demo and changed the first lines to the following. expandcollapse popup#include "wd_core.au3" #include "wd_helper.au3" Local Enum $eFireFox = 0, _ $eChrome, _ $eEdge Local $aDemoSuite[][2] = [["DemoTimeouts", False], _ ["DemoNavigation", False], _ ["DemoElements", False], _ ["DemoScript", False], _ ["DemoCookies", False], _ ["DemoAlerts", False], _ ["DemoFrames", False], _ ["DemoActions", False], _ ["DemoWindows", False]] Local Const $_TestType = $eFireFox Local Const $sElementSelector = "//input[@name='q']" Local $sDesiredCapabilities Local $iIndex Local $sSession $_WD_DEBUG = $_WD_DEBUG_Info Switch $_TestType Case $eFireFox SetupGecko() Case $eChrome SetupChrome() Case $eEdge SetupEdge() EndSwitch _WD_Startup() If @error <> $_WD_ERROR_Success Then Exit -1 EndIf $sSession = _WD_CreateSession($sDesiredCapabilities) If @error = $_WD_ERROR_Success Then For $iIndex = 0 To UBound($aDemoSuite, $UBOUND_ROWS) - 1 If $aDemoSuite[$iIndex][1] Then ConsoleWrite("Running: " & $aDemoSuite[$iIndex][0] & @CRLF) Call($aDemoSuite[$iIndex][0]) Else ConsoleWrite("Bypass: " & $aDemoSuite[$iIndex][0] & @CRLF) EndIf Next EndIf _WD_Navigate($sSession, 'https://www.shirtee.com/en/designer/?id=1140') Sleep(10000) _WD_LinkClickByText($sSession, " Browse ") _WD_LinkClickByText($sSession, "To the next step") I just need to know how to click the browse or to the next step button and I think I will figure out most of the things afterwards. In the Demo, a click on googles search button is shown, but that button has a name, which I could not find on the site that I am using. Link to comment Share on other sites More sharing options...
Danp2 Posted November 25, 2018 Author Share Posted November 25, 2018 3 hours ago, YUK said: _WD_LinkClickByText($sSession, " Browse ") Almost correct. Remove the leading and trailing spaces and then this with work. 3 hours ago, YUK said: _WD_LinkClickByText($sSession, "To the next step") If you examine the source for this element, you will see that it is a button, not a link. Therefore, you're using the wrong function. Try this -- $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//button[@id='pd_gt_product']") _WD_ElementAction($sSession, $sElement, 'click') Â Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
YUK Posted November 25, 2018 Share Posted November 25, 2018 Danp2, thank you very much! Works like a charm. Link to comment Share on other sites More sharing options...
truong2301 Posted November 26, 2018 Share Posted November 26, 2018 #include <wd_core.au3> #include <wd_helper.au3> Local $sDesiredCapabilities, $sSession Global $sElement Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":[' & """start-maximized""," & " ""disable-infobars""" & "" & '] }}}}' EndFunc ;==>SetupChrome SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) $a = _WD_Navigate($sSession, 'https://accounts.google.com') ;$source = _WD_GetSource($sSession) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@jsname='YPqjbf']") _WD_ElementAction($sSession,$sElement,'value','account') I can't enter account value. Â Link to comment Share on other sites More sharing options...
Danp2 Posted November 26, 2018 Author Share Posted November 26, 2018 1 hour ago, truong2301 said: I can't enter account value. Next time, please give additional details, such as -- A description of what isn't working The results from the Scite output panel etc In this case, I'm guessing that you are receiving this in the Scite output panel -- Quote _WD_CreateSession ==> Webdriver Exception: unrecognized capability: chromeOptions This is due to a recent change in ChromeDriver. To resolve the issue, modify your desired capabilities line -- $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[' & """start-maximized""," & " ""disable-infobars""" & "" & '] }}}}' Â Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
truong2301 Posted November 26, 2018 Share Posted November 26, 2018 #include "wd_core.au3" #include "wd_helper.au3" Global $sDesiredCapabilities, $sSession Global $sElement SetupChrome() Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[' & """start-maximized""," & " ""disable-infobars""" & "" & '] }}}}' EndFunc _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) $a = _WD_Navigate($sSession, 'https://google.com') $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@maxlength='2048']") MsgBox(0,0,$sElement) $test=_WD_ElementAction($sSession,$sElement,'value','search')  $test=_WD_ElementAction($sSession,$sElement,'value','search') not working bro. Log: _WDStartup: OS: WIN_10 WIN32_NT 17134 _WDStartup: AutoIt: 3.3.14.5 _WDStartup: WD.au3: 0.1.0.16 _WDStartup: Driver: chromedriver.exe _WDStartup: Params: --log-path="C:\Users\Truong IT\Desktop\Auto IT\Tuong t�c chrome\chrome.log" _WDStartup: Port: 9515 __WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars"] }}}} __WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a)","userDataDir":"C:\\Users\\TRUONG~1\\AppData\\Local\\Temp\\scoped_dir8108_17071"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:21421"},"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,"unhandledPromptBehavior":"","version":"70.0.3538.102","webStorageEnabled":true},"sessionId":"e93c654c82fa5846a82104ca2fe41cde"}} _WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a)","userDataDir":"C:\\Users\\TRUONG~1\\AppData\\Local\\Temp\\scoped_dir8108_17071"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:21421"},"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,"unhandledPromptBehavior":"","version":"70.0.3538.102","webStorageEnabled":true},"sessionId":"e93c654c82fa5846a82104ca2fe41cde"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/e93c654c82fa5846a82104ca2fe41cde/url; $sData={"url":"https://google.com"} __WD_Post: StatusCode=200; ResponseText={"value":null} _WD_Navigate: {"value":null} __WD_Post: URL=HTTP://127.0.0.1:9515/session/e93c654c82fa5846a82104ca2fe41cde/element; $sData={"using":"xpath","value":"//input[@maxlength='2048']"} __WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"23c39cc3-c3c1-459f-afb3-e79dca150cf9"}} _WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"23c39cc3-c3c1-459f-afb3-e79dca150cf9"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/e93c654c82fa5846a82104ca2fe41cde/element/23c39cc3-c3c1-459f-afb3-e79dca150cf9/value; $sData={"id":"23c39cc3-c3c1-459f-afb3-e79dca150cf9", "text":"search"} __WD_Post: StatusCode=500; ResponseText={"value":{"error":"unknown error","message":"'value' must be a list(Session infochrome=70.0.3538.102)","stacktrace":"Backtrace:\n\tOrdinal0 [0x01393CF0+867568]\n\tOrdinal0 [0x0133DB7D+514941]\n\tOrdinal0 [0x0130B367+308071]\n\tOrdinal0 [0x012D6871+92273]\n\tOrdinal0 [0x012EAE8D+175757]\n\tOrdinal0 [0x012D5808+88072]\n\tOrdinal0 [0x012EB111+176401]\n\tOrdinal0 [0x012F278D+206733]\n\tOrdinal0 [0x012EAD2B+175403]\n\tOrdinal0 [0x012D3740+79680]\n\tOrdinal0 [0x012D4CFC+85244]\n\tOrdinal0 [0x012D4C50+85072]\n\tOrdinal0 [0x0139E62A+910890]\n\tOrdinal0 [0x01348993+559507]\n\tOrdinal0 [0x01348BA3+560035]\n\tOrdinal0 [0x01348C8C+560268]\n\tOrdinal0 [0x013A1907+923911]\n\tOrdinal0 [0x013487FF+559103]\n\tOrdinal0 [0x0135306E+602222]\n\tOrdinal0 [0x0135EA3B+649787]\n\tOrdinal0 [0x0135EBA5+650149]\n\tOrdinal0 [0x0135DDA5+646565]\n\tBaseThreadInitThunk [0x750D8484+36]\n\tRtlValidSecurityDescriptor [0x77DB302C+284]\n\tRtlValidSecurityDescriptor [0x77DB2FFA+234]\n"}} _WD_ElementAction: {"value":{"error":"unknown error","message":"'value' must be a list(Session infochrome=70.0.3538.102)","stacktrace":"Backtrace:\n\tOrdinal0 [0x01393CF0+867568]\n\tOrdinal0 [0x0133DB7D+514941]\n\tOrdinal0 [0x0130B367+308071]\n\tOrdinal0 [0x012D6871+92273]\n\tOrdinal0 [0x012EAE8D+175757]\n\tOrdinal0 [0x012D5808+88072]\n\tOrdinal0 [0x012EB111+176401]\n\tOrdinal0 [0x012F278D+206733]\n\tOrdinal0 [0x012EAD2B+175403]\n\tOrdinal0 [0x012D3740+79680]\n\tOrdinal0 [0x012D4CFC+85244]\n\tOrdinal0 [0x012D4C50+85072]\n\tOrdinal0 [0x0139E62A+910890]\n\tOrdinal0 [0x01348993+559507]\n\tOrdinal0 [0x01348BA3+560035]\n\tOrdinal0 [0x01348C8C+560268]\n\tOrdinal0 [0x013A1907+923911]\n\tOrdinal0 [0x013487FF+559103]\n\tOrdinal0 [0x0135306E+602222]\n\tOrdinal0 [0x0135EA3B+649787]\n\tOrdinal0 [0x0135EBA5+650149]\n\tOrdinal0 [0x0135DDA5+646565]\n\tBaseThreadInitThunk [0x750D8484+36]\n\tRtlValidSecurityDescriptor [0x77DB302C+284]\n\tRtlValidSecurityDescriptor [0x77DB2FFA+234]\n"}}  Link to comment Share on other sites More sharing options...
Danp2 Posted November 26, 2018 Author Share Posted November 26, 2018 Your code works fine for me. Please ensure you are using the latest version of ChromeDriver (version 2.44). Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Aelc Posted November 26, 2018 Share Posted November 26, 2018 Hey! im really new here at autoit, so i think i just missed something... I just downloaded all the required files, moved them together in a folder and started the wd_demo.au3 up. but it fails to start _WDStartup: OS:   WIN_7 WIN32_NT 7601 Service Pack 1 _WDStartup: AutoIt:   3.3.14.5 _WDStartup: WD.au3:   0.1.0.16 _WDStartup: Driver:   geckodriver.exe _WDStartup: Params:   --log trace _WDStartup: Port:   4444 __WD_Post: URL=HTTP://127.0.0.1:4444/session; $sData={"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}} __WD_Post: StatusCode=500; ResponseText={"value":{"error":"session not created","message":"Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line","stacktrace":""}} _WD_CreateSession: {"value":{"error":"session not created","message":"Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line","stacktrace":""}} _WD_CreateSession ==> Webdriver Exception: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line __WD_Delete: URL=HTTP://127.0.0.1:4444/session/ __WD_Delete: StatusCode=404; ResponseText={"value":{"error":"unknown command","message":"DELETE /session/ did not match a known command","stacktrace":""}} _WD_DeleteSession: {"value":{"error":"unknown command","message":"DELETE /session/ did not match a known command","stacktrace":""}} +>18:11:25 AutoIt3.exe ended.rc:0  im a bit confused about it cause i use chrome and not firefox and dont know why it even starts the gecko. first i tried to start without geckodriver but it failed to start too. im sure i just missed a little thing  im not that good to understand english texts  why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Aelc Posted November 26, 2018 Share Posted November 26, 2018 EDIT: If i remove the switch it starts up chrome ;~ Switch $_TestType ;~    Case $eFireFox ;~       SetupGecko() ;~    Case $eChrome       SetupChrome() ;~    Case $eEdge ;~       SetupEdge() ;~ EndSwitch  why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Danp2 Posted November 26, 2018 Author Share Posted November 26, 2018 1 hour ago, Aelc said: _WD_CreateSession: {"value":{"error":"session not created","message":"Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line","stacktrace":""}} It's telling you that it was unable to locate Firefox on your system. Do you have it installed in a non-standard location? 41 minutes ago, Aelc said: If i remove the switch it starts up chrome Not sure what you mean here. Please explain. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Aelc Posted November 26, 2018 Share Posted November 26, 2018 1 minute ago, Danp2 said: It's telling you that it was unable to locate Firefox on your system. Do you have it installed in a non-standard location? i dont even have installed firefox. i use chrome. thats why i dont know why it trying to start the gecko.  2 minutes ago, Danp2 said: Not sure what you mean here. Please explain. that means it works generally. the switch just choose the gecko and try to start it instead of chromedriver but it cant find the location of firefox cause i dont have installed it.  in my new testscript i just removed it and im actually thinking about _wd_findelement when i have an element like <input id="j_idt12:email" type="text" name="j_idt12:email" value="" class="loginInputField" placeholder="Email"> how can i get the real element id to set the value. i just tried _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@name='j_idt12:email']") out of the demo script but i dont know why i get an error.  thank you for the help  why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Danp2 Posted November 26, 2018 Author Share Posted November 26, 2018 3 minutes ago, Aelc said: i dont even have installed firefox. i use chrome. thats why i dont know why it trying to start the gecko. Look at line 18 -- Local Const $_TestType = $eFireFox If you want to use chrome, then change that to $eChrome instead of $eFirefox. 6 minutes ago, Aelc said: i just tried _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@name='j_idt12:email']") out of the demo script but i dont know why i get an error. Me either... because you didn't show the error message and my crystal ball is broken. Aelc 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Aelc Posted November 26, 2018 Share Posted November 26, 2018 16 minutes ago, Danp2 said: Look at line 18 -- Local Const $_TestType = $eFireFox If you want to use chrome, then change that to $eChrome instead of $eFirefox. ahh i see ...  17 minutes ago, Danp2 said: Me either... because you didn't show the error message and my crystal ball is broken. yea sorry ... __WD_Post: URL=HTTP://127.0.0.1:9515/session/800be4d21b51beaefcc445da7589cfdb/element; $sData={"using":"xpath","value":"//input[@name='j_idt12:email']"} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"xpath\",\"selector\"\"//input[@name='j_idt12email']\"}(Session infochrome=70.0.3538.102)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0100F920+850208]\n\tOrdinal0 [0x00FBC1ED+508397]\n\tOrdinal0 [0x00F89FA7+303015]\n\tOrdinal0 [0x00F591D5+102869]\n\tOrdinal0 [0x00F72720+206624]\n\tOrdinal0 [0x00F69AC0+170688]\n\tOrdinal0 [0x00F7133D+201533]\n\tOrdinal0 [0x00F6992B+170283]\n\tOrdinal0 [0x00F534F0+79088]\n\tOrdinal0 [0x00F54AAC+84652]\n\tOrdinal0 [0x00F54A00+84480]\n\tOrdinal0 [0x0101A23A+893498]\n\tOrdinal0 [0x00FC6823+550947]\n\tOrdinal0 [0x00FC6A33+551475]\n\tOrdinal0 [0x00FC6B1C+551708]\n\tOrdinal0 [0x0101CF17+904983]\n\tOrdinal0 [0x00FC668F+550543]\n\tOrdinal0 [0x00FD001E+589854]\n\tOrdinal0 [0x00FDB88B+637067]\n\tOrdinal0 [0x00FDB9F5+637429]\n\tOrdinal0 [0x00FDAC25+633893]\n\tBaseThreadInitThunk [0x771533AA+18]\n\tRtlInitializeExceptionChain [0x77B39F72+99]\n\tRtlInitializeExceptionChain [0x77B39F45+54]\n"}} _WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"xpath\",\"selector\"\"//input[@name='j_idt12email']\"}(Session infochrome=70.0.3538.102)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0100F920+850208]\n\tOrdinal0 [0x00FBC1ED+508397]\n\tOrdinal0 [0x00F89FA7+303015]\n\tOrdinal0 [0x00F591D5+102869]\n\tOrdinal0 [0x00F72720+206624]\n\tOrdinal0 [0x00F69AC0+170688]\n\tOrdinal0 [0x00F7133D+201533]\n\tOrdinal0 [0x00F6992B+170283]\n\tOrdinal0 [0x00F534F0+79088]\n\tOrdinal0 [0x00F54AAC+84652]\n\tOrdinal0 [0x00F54A00+84480]\n\tOrdinal0 [0x0101A23A+893498]\n\tOrdinal0 [0x00FC6823+550947]\n\tOrdinal0 [0x00FC6A33+551475]\n\tOrdinal0 [0x00FC6B1C+551708]\n\tOrdinal0 [0x0101CF17+904983]\n\tOrdinal0 [0x00FC668F+550543]\n\tOrdinal0 [0x00FD001E+589854]\n\tOrdinal0 [0x00FDB88B+637067]\n\tOrdinal0 [0x00FDB9F5+637429]\n\tOrdinal0 [0x00FDAC25+633893]\n\tBaseThreadInitThunk [0x771533AA+18]\n\tRtlInitializeExceptionChain [0x77B39F72+99]\n\tRtlInitializeExceptionChain [0x77B39F45+54]\n"}} _WD_FindElement ==> No match: HTTP status = 404  it tells me there is no match but the sourcecode include this element why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Recommended Posts