Jump to content

WebDriver UDF - Help & Support (II)


Danp2
 Share

Recommended Posts

Hi All, Pls help me,

i have HTML :

<button class="btn btn-primary" onclick="Brandname.saveAmount(3116)"><i class="fa fa-save"></i> Luu </button>
onclick="Brandname.saveAmount(3116)"

---> 3116 is a random number

 

$sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//button[@onclick='Brandname.saveAmount(*)']")
    _WD_ElementAction($sSession, $sButton, 'Click')
    _WD_LoadWait($sSession, 200)

I want to properly position a pattern like this: Brandname.saveAmount *** xyz.

I tried like this but it is not correct. Please help me to solve it thanks a lot

 

 

Link to comment
Share on other sites

I have a trivial situation that I just want to understand.

Simple minimal gecko scenario that is working:

#include "wd_core.au3"
#include "wd_helper.au3"

_WD_Option('Driver', 'geckodriver.exe')
_WD_Option('DriverParams', '--log trace')
_WD_Option('Port', 4444)

$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"browserName": "firefox", "acceptInsecureCerts":true}}}'

_WD_Startup()

$sSession = _WD_CreateSession($sDesiredCapabilities)

_WD_DeleteSession($sSession)
_WD_Shutdown()

I run this. Gecko driver console opens and then closes. All good.

 

But now I put gecko driver in a folder:

#include "wd_core.au3"
#include "wd_helper.au3"

_WD_Option('Driver', 'drivers/geckodriver.exe')
_WD_Option('DriverParams', '--log trace')
_WD_Option('Port', 4444)

$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"browserName": "firefox", "acceptInsecureCerts":true}}}'

_WD_Startup()

$sSession = _WD_CreateSession($sDesiredCapabilities)

_WD_DeleteSession($sSession)
_WD_Shutdown()

I run again. Gecko driver console opens but does not close on script exit. Why is that?

(probably something so simple for me to understand)

Link to comment
Share on other sites

Is it intended that _WD_UpdatedDriver won't download a new driver if there isn't one in the install directory already? If there isn't a driver, the driver's version check fails and $iErr is set to $_WD_ERROR_NoMatch, causing it to skip the install.

I've been using this sooo much lately and it's been great to work with! I seriously appreciate this UDF :)

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

It seems that $_WD_Driver_Close and $_WD_Driver_Detect are very similar, but they should never both be set to True because...

 _WD_Startup calls __WD_DriverClose, which doesn't wait for processes to close before returning. Then _WD_Startup will attempt to attach to a driver that is in the process of shutting down. (ProcessClose just submits a "Kill" command without waiting)

I'm not sure if it would be better to:

  • add a second parameter to __WD_DriverClose that will optionally wait for the drivers to close (this would allow _WD_Shutdown to not wait, but _WD_Startup can)
  • change the default global variable values

Currently, if you leave the default values and have an open driver, _WD_CreateSession times out with the error "WinHTTP request timed out before Webdriver"

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

16 minutes ago, seadoggie01 said:

ProcessClose just submits a "Kill" command without waiting

If that's true, then how do you explain this from documentation?

Quote
@error:  3 = TerminateProcess Failed

Are the docs wrong?

22 minutes ago, seadoggie01 said:

Currently, if you leave the default values and have an open driver, _WD_CreateSession times out with the error "WinHTTP request timed out before Webdriver"

I haven't encountered this. Can you post a reproducer script?

Link to comment
Share on other sites

37 minutes ago, Danp2 said:

Are the docs wrong?

No... but killing a process isn't an immediate thing. I looked into this recently (I'll edit if I can find the topic where this was discussed See edit)

37 minutes ago, Danp2 said:

Can you post a reproducer script?

This took longer than I expected... it's also related to calling _WD_Startup with $_WD_DEBUG set to $_WD_DEBUG_None, which I didn't expect...

(I've seen this with Chrome and Edge, so it's not related to which browser is used)

#include <wd_core.au3>

Main()
Main()

Func Main()

    ConsoleWrite("ProcessExists: " & ProcessExists("msedgedriver.exe") & @CRLF)

    Local $sDesiredCapabilities = '{"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"plugins.always_open_pdf_externally": true}}}}}'

    ; Update MS Edge driver (x64 for me)
;~  _WD_UpdateDriver("msedge", @ScriptDir & "\", True)
    _WD_Option('Port', 9515)
    _WD_Option('Driver', @ScriptDir & "\msedgedriver.exe")


    $_WD_DEBUG = $_WD_DEBUG_None
    _WD_Startup()
    If @error Then Exit ConsoleWrite("_WD_Startup Error: " & @error & " Extended: " & @extended & @CRLF)
    $_WD_DEBUG = $_WD_DEBUG_Info

    Local $sSession = _WD_CreateSession($sDesiredCapabilities)
    If @error Then Exit ConsoleWrite("_WD_CreateSession Error: " & @error & " Extended: " & @extended & @CRLF)

    _WD_DeleteSession($sSession)
    ; Don't close
;~  _WD_Shutdown()

EndFunc

Edit: "Recently", or a month ago. Basically, ProcessClose uses a series of DllCalls that MS says are asynchronous :)

Edit2: Oooooh! Because when you Run something hidden, there isn't a Console process that __WD_DriverClose is checking for!

Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Thanks for the link to the earlier discussion.

50 minutes ago, seadoggie01 said:

Oooooh! Because when you Run something hidden, there isn't a Console process that __WD_DriverClose is checking for!

Not sure that I follow. Are you saying that the process being hidden has an effect on __WD_DriverClose ?

When I run your reproducer, this is what I get for output --

ProcessExists: 0
_WDStartup: "C:\Users\danpollak\Dropbox\webdriver\msedgedriver.exe"  
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"plugins.always_open_pdf_externally": true}}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0.622.58","ms:edgeOptions":{"debuggerAddress":"localhost:51811"},"msedge":{"msedgedriverVersion":"85.0.564.44 (3b106b45f8e7cd4c3e2aac5a6ba411645c16df60)","userDataDir":"C:\\Users\\danpollak\\AppData\\Local\\Temp\\scoped_dir37124_437706365"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"347f27b3bd08143eec51d52a103a77b3"}}
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/347f27b3bd08143eec51d52a103a77b3
__WD_Delete: StatusCode=200; ResponseText={"value":null}...
_WD_DeleteSession: {"value":null}
ProcessExists: 37124
_WDStartup: "C:\Users\danpollak\Dropbox\webdriver\msedgedriver.exe"  
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"plugins.always_open_pdf_externally": true}}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0.622.58","ms:edgeOptions":{"debuggerAddress":"localhost:51827"},"msedge":{"msedgedriverVersion":"85.0.564.44 (3b106b45f8e7cd4c3e2aac5a6ba411645c16df60)","userDataDir":"C:\\Users\\danpollak\\AppData\\Local\\Temp\\scoped_dir39560_1660755597"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"6876a1e074f89b5f3a9f6b03b1259a27"}}
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/6876a1e074f89b5f3a9f6b03b1259a27
__WD_Delete: StatusCode=200; ResponseText={"value":null}...
_WD_DeleteSession: {"value":null}
+>12:37:06 AutoIt3.exe ended.rc:0
+>12:37:06 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 7.107

Are you seeing something different?

Link to comment
Share on other sites

Yes, my second CreateSession times out and _WD_Startup detects an existing instance of the edge driver

ProcessExists: 0
_WDStartup: "C:\Users\seadoggie01\Documents\AutoIt\temp\msedgedriver.exe"  
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"plugins.always_open_pdf_externally": true}}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0.622.61","ms:edgeOptions":{"debuggerAddress":"localhost:53284"},"msedge":{"msedgedriverVersion":"86.0.622.61 (0628f1cece973e53421146ce46918eff9c2be49e)","userDataDir":"C:\\Users\\seadoggie01\\AppData\\Local\\Temp\\scoped_dir4672_2090404888"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"f4e20a88e6fc6979be6999e852f4ba2a"}}
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/f4e20a88e6fc6979be6999e852f4ba2a
__WD_Delete: StatusCode=200; ResponseText={"value":null}...
_WD_DeleteSession: {"value":null}
ProcessExists: 4672
_WDStartup: "C:\Users\seadoggie01\Documents\AutoIt\temp\msedgedriver.exe"  
_WDStartup: Existing instance of msedgedriver.exe detected!
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"plugins.always_open_pdf_externally": true}}}}}
__WD_Post: StatusCode=0; ResponseText=WinHTTP request timed out before Webdriver...
__WD_Post ==> Send / Recv error: WinHTTP request timed out before Webdriver
_WD_CreateSession: WinHTTP request timed out before Webdriver
_WD_CreateSession ==> Webdriver Exception: HTTP status = 0
_WD_CreateSession Error: 10 Extended: 0
21 minutes ago, Danp2 said:

Are you saying that the process being hidden has an effect on __WD_DriverClose ?

No, sorry. That was wrong. I was calling ProcessList too quickly (10ms after Run it will return the correct number of consoles)

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

  • 2 weeks later...

@Danp2 This is to let you know that I found a curious result from running _wd_demo.au3. If i run the code with browser set to Edge, a Chrome session is created instead of an Edge session. Both my msedge.exe and msedgedriver.exe are version 86.0.622.68. I don't know the meaning of statuscode 200 in the console log, but that seems to be explaining the reason. Could it be due to some mismatch in my computer setup? If something is wrong, I would expect the code to exit. I can't understand how the code creates a Chrome session without an instruction.

Edit: I tried both x86 and x64 versions of msedgedriver and the result was the same.

>"C:\AutoIt3\SciTE\..\AutoIt3.exe" "C:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\EdgeDriver\wd_demo.au3" /UserParams    
+>14:52:34 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0)  Keyboard:00000412  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0412)  CodePage:949  utf8.auto.check:4
+>         SciTEDir => C:\AutoIt3\SciTE   UserDir => C:\Users\CYCho\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\CYCho\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\AutoIt3  input:D:\EdgeDriver\wd_demo.au3
+>14:52:35 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\AutoIt3\autoit3.exe "D:\EdgeDriver\wd_demo.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
_WD_IsLatestRelease: True
_WD_IsLatestRelease ==> Success
_WDStartup: OS: WIN_10 WIN32_NT 19041 
_WDStartup: AutoIt: 3.3.14.5
_WDStartup: WD.au3: 0.3.1.0 (Up to date)
_WDStartup: WinHTTP:    1.6.4.2
_WDStartup: Driver: msedgedriver.exe
_WDStartup: Params: --verbose
_WDStartup: Port:   9515
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"binary": "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe", "excludeSwitches": [ "enable-automation"], "useAutomationExtension": false}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"86.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"86.0.4240.198","chrome":{"chromedriverVersion":"86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378})","userDataDir":"C:\\Users\\CYCho\\AppData\\Local\\Temp\\scoped_dir5424_546984167"},"goog:chromeOptions":{"debuggerAddress":"localhost:54071"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"383503349c59305ffff926eaf91dace0"}}
Bypass: DemoTimeouts
+Running: DemoNavigation
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url; $sData={"url":"http://google.com"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Navigate: {"value":null}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05"]}...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}...
_WD_Window: {"value":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/execute/sync; $sData={"script":"window.open(arguments[0], '', arguments[1])", "args":["",""]}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ExecuteScript: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF"]}...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF"]}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window; $sData={"handle":"CDwindow-FF72E96EE834179B43EFDB7941844FBF"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url; $sData={"url":"http://yahoo.com"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Navigate: {"value":null}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF"]}...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-FF72E96EE834179B43EFDB7941844FBF"}...
_WD_Window: {"value":"CDwindow-FF72E96EE834179B43EFDB7941844FBF"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/execute/sync; $sData={"script":"window.open(arguments[0], '', arguments[1])", "args":["http://bing.com","width=200,height=200"]}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ExecuteScript: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window; $sData={"handle":"CDwindow-2A443BAAB7327B727794FCC705AB59AF"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.bing.com/?toWww=1&redig=A0691BF404484654A84BD2AD0B4E8210"}...
_WD_Action: {"value":"https://www.bing.com/?toWww=1&redig=A0691BF404484654A84BD2AD0B4E8210"}
URL=https://www.bing.com/?toWww=1&redig=A0691BF404484654A84BD2AD0B4E8210
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-2A443BAAB7327B727794FCC705AB59AF"}...
_WD_Window: {"value":"CDwindow-2A443BAAB7327B727794FCC705AB59AF"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window; $sData={"handle":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.google.com/?gws_rd=ssl"}...
_WD_Action: {"value":"https://www.google.com/?gws_rd=ssl"}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.google.com/?gws_rd=ssl"}...
_WD_Action: {"value":"https://www.google.com/?gws_rd=ssl"}
URL=https://www.google.com/?gws_rd=ssl
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
_WD_Window: {"value":["CDwindow-8B837656C0CB2059446BD22E0C965D05","CDwindow-FF72E96EE834179B43EFDB7941844FBF","C...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}...
_WD_Window: {"value":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window; $sData={"handle":"CDwindow-8B837656C0CB2059446BD22E0C965D05"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.google.com/?gws_rd=ssl"}...
_WD_Action: {"value":"https://www.google.com/?gws_rd=ssl"}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/window; $sData={"handle":"CDwindow-FF72E96EE834179B43EFDB7941844FBF"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.yahoo.com/"}...
_WD_Action: {"value":"https://www.yahoo.com/"}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0/url
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"https://www.yahoo.com/"}...
_WD_Action: {"value":"https://www.yahoo.com/"}
URL=https://www.yahoo.com/
+Finished: DemoNavigation
Bypass: DemoElements
Bypass: DemoScript
Bypass: DemoCookies
Bypass: DemoAlerts
Bypass: DemoFrames
Bypass: DemoActions
Bypass: DemoDownload
Bypass: DemoWindows
Bypass: DemoUpload
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/383503349c59305ffff926eaf91dace0
__WD_Delete: StatusCode=200; ResponseText={"value":null}...
_WD_DeleteSession: {"value":null}
+>14:52:58 AutoIt3.exe ended.rc:0
+>14:52:58 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 24.46


 

Edited by CYCho
Link to comment
Share on other sites

@CYCho Not sure why it isn't working for you. When I run it on my system, this is what get's returned --

_WD_IsLatestRelease: True
_WD_IsLatestRelease ==> Success
_WDStartup: OS: WIN_10 WIN32_NT 18363 
_WDStartup: AutoIt: 3.3.14.5
_WDStartup: WD.au3: 0.3.1.0 (Up to date)
_WDStartup: WinHTTP:    1.6.4.2
_WDStartup: Driver: msedgedriver.exe
_WDStartup: Params: --verbose
_WDStartup: Port:   9515
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"binary": "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe", "excludeSwitches": [ "enable-automation"], "useAutomationExtension": false}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"86.0.622.58","ms:edgeOptions":{"debuggerAddress":"localhost:59523"},"msedge":{"msedgedriverVersion":"86.0.622.61 (0628f1cece973e53421146ce46918eff9c2be49e)","userDataDir":"C:\\Users\\danpollak\\AppData\\Local\\Temp\\scoped_dir32244_634583417"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"95a82d21bc297e3494693979cadc7431"}}

Please post the contents of the msedgedriver console.Also, confirm that the Edge executable exists at "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe".

Link to comment
Share on other sites

41 minutes ago, Danp2 said:

Please post the contents of the msedgedriver console.

I don't know how to do this. Please let me know how.
 

 

42 minutes ago, Danp2 said:

Also, confirm that the Edge executable exists at "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe".

Yes, the full path copied from file explorer is: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...