I am using webdriverio v7.5.7. While writing test, browser keyword not getting identified. It is auto correcting to Bhxbrowser. Any idea ?
I also face the same problem but found the solution on their official site.
You need to create jsconfig.json file and save it in your project folder.
Mocha:
{
"compilerOptions": {
"types": [
"node",
"webdriverio/sync",
"@wdio/mocha-framework"
]
}
}
Cucumber:
{
"compilerOptions": {
"types": [
"node",
"webdriverio/async",
"@wdio/cucumber-framework"
]
}
}
Reference to the solution: https://webdriver.io/docs/autocompletion/#visual-studio-code-vscode