Chrome driver behaving weird, please help

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Posts: 79
Joined: 01 Jun 2019, 08:47
Location: India

Chrome driver behaving weird, please help

18 Nov 2019, 05:43

Code: Select all

ChromeGet(IP_Port := "") {
     driver := ComObjCreate("Selenium.CHROMEDriver") ;Chrome driver
     driver.SetCapability("debuggerAddress", IP_Port)
     return driver
I'm using this code to link selenium to an already running instance of chrome. But when a drag a tab out of the chrome window to create a new window of chrome and then run the script to define driver := ChromeGet(), the driver gets linked to the New chrome window. Doesn't matter which window/tab is active, driver always gets linked to the new window. Can someone explain why this is happening?


Return to “Ask For Help”

Who is online

Users browsing this forum: chubbychub, enrica, Google [Bot], prasad383, songdg and 152 guests