March 21, 2018
Webdriver | Launch Edge Browser Using Testmate | VBScript
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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") |