can someone help me how to change URL with Selenium ?
already read This but still no luck
any help will be appreciated
this is my example code so far
Code: Select all
URL = https://www.autohotkey.com ; First URL
run % "chrome.exe --start-maximized -incognito --remote-debugging-port=9222" ( winExist("ahk_class Chrome_WidgetWin_1") ? " --new-window " : " " ) URL
driver := ChromeGet()
MsgBox, % "First URL : `n" driver.Window.Title "`n" driver.Url
sleep, 10000
URL = https://www.autohotkey.com/docs/AutoHotkey.htm ; Second URL
run % "chrome.exe --start-maximized -incognito --remote-debugging-port=9222" ( winExist("ahk_class Chrome_WidgetWin_1") ? : " " ) URL
driver := ChromeGet()
MsgBox, % "Second URL : `n" driver.Window.Title "`n" driver.Url
ChromeGet(IP_Port := "127.0.0.1:9222") {
driver := ComObjCreate("Selenium.ChromeDriver")
driver.SetCapability("debuggerAddress", IP_Port)
driver.Start()
return driver
}
thank you