The post Webdriver | Execute JavaScript Using Testmate appeared first on TestMate.
]]>'Initialize the driver
Call wd.InitializeFireFoxDriver("C:\Users\Desktop\selenium")
'Navigate to the desired URL
Call wd.NavigateToUrl("https://www.google.com/")
'Execute javascript
Call wd.ExecuteScript("name::q","arguments[0].style.border='3px solid red'")
'Return page title using java script
Msgbox wd.ExecuteScript("return document.title")
The post Webdriver | Execute JavaScript Using Testmate appeared first on TestMate.
]]>