Code: Select all
driver:= ComObjCreate("Selenium.WebDriver")
Driver.Start("chrome", "https www.EXAMPLE.COM /") Broken Link for safety
driver.Get("/")
driver.findElementByID("txtLogin").SendKeys("XI2DC")
driver.findElementByID("txtPassword").SendKeys("HELI")
click:
Loop
{
driver.findElementByID("imgbtnLogin").click
try
Exists := driver.findElementByID("lblError").Attribute("innerText")
catch
break
Sleep 500
}
return
why Chrome closed after complete this script