Jump to content

Recommended Posts

Posted

I'm on a fresh machine I just installed autoit on, working on a webdriver script. I downloaded all the newest dependencies, but I"m having an issue with WinHTTP.au3 I am running 1.6.4.1 just pulled from github. This is what I'm getting, not sure whats causing it.

 

And help would be great

aitpit.png

Posted

Oh, I"m just test running a sample script I found just to make sure I have everything setup correct, below is what I have.

 

Func Test14_CreateAMatter_WithWD($IEURL)

#RequireAdmin
#include <WinHttpConstants.au3>
#include <WinHTTP.au3>
#include <wd_core.au3>
#include <JSON.au3>
#include <BinaryCall.au3>
#include <Base64.au3>

Local $sDesiredCapabilities
_WD_Option('Driver', 'chromedriver.exe')
_WD_Option('Port', 9515)
sleep(5000)
$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars"] }}}}'
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)
If $sSession <> "" Then
    MsgBox(0,"",$sSession)
    _WD_Navigate($sSession, $IEURL)
Else
    msgbox(0,"","Blank sessionid")
EndIf

_WD_DeleteSession($sSession)
_WD_Shutdown()

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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