Webdriver | Launch Edge Browser Using Testmate | VBScript

Webdriver needs MicrosoftWebDriver.exe file to launch a chrome browser. Download the latest version here. The below code launch the Edge browser using Testmate.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'Intialize edge Options
 wd.InitializeEdgeOptions()
 
'Initialize edge Driver
 wd.InitializeEdgeDriver("C:\Users\...\EdgeDriverPath")
 
'Navigate the URL
 wd.NavigateToUrl("https://www.facebook.com/")
 
'Highlight the control
 wd.Highlight("id::email")
 
'Send Keys in Email textbox
 Call wd.SendKeys("id::email","abc")
 
'Send keys in Password
 Call wd.SendKeys("id::pass","hello")

Add a Comment

Your email address will not be published. Required fields are marked *