Home > Enterprise >  WebdriverIO:-How to execute selenium script in already opened browser
WebdriverIO:-How to execute selenium script in already opened browser

Time:09-17

I know to execute the script in already opened browser by setting chromeOption setExperimentalOption("debuggerAddress","localhost:1234") in webdriver. I want to achieve this in WebdriverIO. Is it possible?

CodePudding user response:

https://chromedriver.chromium.org/capabilities

you can see that debuggerAddress is a chrome option , so you can do ut as :

capabilities: [
       {
            
            "goog:browserName": "chrome",
    
            "goog:chromeOptions": {
                "debuggerAddress": "localhost:1234"
    
            }
    
    }]
  • Related