WebdriverIO:-如何在已打开的浏览器中执行 selenium 脚本
WebdriverIO:-How to execute selenium script in already opened browser
我知道通过在 webdriver 中设置 chromeOption setExperimentalOption("debuggerAddress","localhost:1234") 来在已经打开的浏览器中执行脚本。
我想在 WebdriverIO 中实现这一点。
可能吗?
https://chromedriver.chromium.org/capabilities
您可以看到 debuggerAddress 是一个 chrome 选项,因此您可以按 :
capabilities: [
{
"goog:browserName": "chrome",
"goog:chromeOptions": {
"debuggerAddress": "localhost:1234"
}
}]
我知道通过在 webdriver 中设置 chromeOption setExperimentalOption("debuggerAddress","localhost:1234") 来在已经打开的浏览器中执行脚本。 我想在 WebdriverIO 中实现这一点。 可能吗?
https://chromedriver.chromium.org/capabilities
您可以看到 debuggerAddress 是一个 chrome 选项,因此您可以按 :
capabilities: [
{
"goog:browserName": "chrome",
"goog:chromeOptions": {
"debuggerAddress": "localhost:1234"
}
}]