Jump to content

Recommended Posts

Posted

This call works in my script

    Local $sURL = 'http://www.bfgp.uk/2024-30.htm'
    _WD_Navigate($sSession, $sURL)
    $sBody = _WD_GetSource($sSession)
 

This call doesn't:

    Local $sURL = 'lse.co.uk/share-fundamentals.html?shareprice=AAF&share=Airtel-Africa'
    _WD_Navigate($sSession, $sURL)
    $sBody = _WD_GetSource($sSession)
 

If I paste either of these URLs into the address bar of Edge and Chrome they open the requested page without issue so I'm guessing that the equals signs in the "?shareprice=AAF&share=Airtel-Africa" part of the URL are the problem.

Can anybody advise what I can do to fix this problem?

The relevant console output is:

_WD_IsLatestRelease ==> Success [0] : True
_WD_Startup: OS:    WIN_11 X64 22631 
_WD_Startup: AutoIt:    3.3.16.1
_WD_Startup: Webdriver UDF:    1.4.0 (Up to date)
_WD_Startup: WinHTTP:    1.6.4.2
_WD_Startup: Driver:    C:\Program Files (x86)\AutoIt3\Include\chromedriver.exe (32 Bit)
_WD_Startup: Params:    --port=9515 --verbose --log-path="D:\Data\_Temp1\ShareQualityCoding\chrome.log"
_WD_Startup: Port:    9515
_WD_Startup: Command:    "C:\Program Files (x86)\AutoIt3\Include\chromedriver.exe" --port=9515 --verbose --log-path="D:\Data\_Temp1\ShareQualityCoding\chrome.log" 
_WD_Startup ==> Success [0]
__WD_Post ==> Success [0] : HTTP status = 200
_WD_CreateSession ==> Success [0] : 7aba2633a36a7997f745ee2772958cfc
__WD_Post ==> Success [0] : HTTP status = 200
_WD_Window ==> Success [0] : Parameters:   Command=rect   Option={"x":0,"y":0,"width":1300,"height":1400}
__WD_Post ==> Success [0] : HTTP status = 200
_WD_Navigate ==> Success [0] : Parameters:   URL=http://www.bfgp.uk/2024-30.htm
__WD_Get ==> Success [0] : HTTP status = 200
_WD_GetSource ==> Success [0]
__WD_Post ==> Invalid argument [5] : HTTP status = 400
_WD_Navigate ==> Invalid argument [5] : Parameters:   URL=lse.co.uk/share-fundamentals.html?shareprice=AAF&share=Airtel-Africa
__WD_Get ==> Success [0] : HTTP status = 200
_WD_GetSource ==> Success [0]
 

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...