Jump to content

Recommended Posts

Posted

Hello,

Currently i am using IE browser for my Websites to run using IE udf like action,linkclickby text,objectbyname or id,IENavigate. Now i want to use Microsoft edge browser for my websites to run

so there will be differences between both browsers, So any link or UDF for Microsoft edge browser, so that i can use the same action what i am doing using IE browser.

Posted

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Posted

Hello,

is it like this down below:

$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"binary": "' & StringReplace ("C:\Program Files (x86)", "\", "/") & '/AppData/Local/Microsoft/Edge SxS/Application/msedge.exe"}}}}'

Posted

Hello Dan,

Do i need to install webdriver for Microsoft edge msedgedriver.exe? and what will be the path to put the driver. Website is not opening using edge

Because i am getting this error below as output:

__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

Posted

I think you left out an important detail. I suspect that you are seeing a message similar to this --

Quote

(Download latest source at <https://raw.githubusercontent.com/dragana-r/autoit-winhttp/master/WinHttp.au3>)

This means that your WinHTTP UDF needs to be updated. Please copy the source at that link and paste it into your existing WinHTTP.au3, replacing the current code.

6 minutes ago, MRAJ said:

Do i need to install webdriver for Microsoft edge msedgedriver.exe? and what will be the path to put the driver

Yes. If it isn't in your current working directory, then you need to change this --

_WD_Option('Driver', 'msedgedriver.exe')

to this --

_WD_Option("driver", "c:\full\path\to\msededriver.exe")

 

Posted

I put the below in my script

#include "wd_helper.au3"

_WD_UpdateDriver('msedge', Default, Default, True)

in my script but still giving me the below output

 

__WD_Post: StatusCode=0; ResponseText=WinHTTP request timed out before Webdriver...
__WD_Post ==> Send / Recv error: WinHTTP request timed out before Webdriver

Posted

Below is my script. Could you please check if i am wrong in any line or any code needed to be added.

 

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


Local $sDesiredCapabilities, $sSession, $sElement

SetupEdge()
$sSession = _WD_CreateSession($sDesiredCapabilities)
_WD_Navigate($sSession, "https://www.google.com") - need to open the website in browser
$sSession = _WD_CreateSession($sDesiredCapabilities)


Func SetupEdge()
_WD_Option('Driver', 'msedgedriver.exe')
_WD_Option('Port', 9515)
_WD_Option('DriverParams', '--verbose')

$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"binary": "' & StringReplace (@ProgramFilesDir, "\", "/") & '/Microsoft/Edge/Application/msedge.exe", "excludeSwitches": [ "enable-automation"], "useAutomationExtension": false}}}}'
EndFunc

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