webdriverio: 'browser.getLogs' unknown command:
Environment (please complete the following information):
- WebdriverIO version: 5.12.5
- Node.js version: 8.16
- NPM version: 6.9
- **Browser name and version:**Chrome 77
- Platform name and version: MacOS
- Additional wdio packages used (if applicable): “@wdio/dot-reporter”: “5.7.8”, “@wdio/local-runner”: “^5.13.1”, “@wdio/selenium-standalone-service”: “^5.12.1”, “@wdio/allure-reporter”: “^5.12.1”, “@wdio/cli”: “^5.12.5”, “@wdio/mocha-framework”: “^5.12.1”, “@wdio/sync”: “^5.12.3”,
Config of WebdriverIO selenium
Describe the bug When calling
browser.getLogs('browser')
appear following error: ERROR webdriver: Request failed due to Error: unknown command: session/bb3d82dbd3473e43c568efb90e8c1846/se/log
To Reproduce Steps to reproduce the behavior:
browser.navigateTo('https://www.google.com');
console.log(browser.getLogs('browser'));
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (10 by maintainers)
Thanks for the link! I came into the same conclusion myself this morning. For anyone else googling this issue and scrolling straight down, this fixed
browser.getLogsfor me:However, this version broke
sendKeys(which can be worked around withgetActiveElementandelementSendKeys)@WilliamNurmi its not enough to install chromedriver you should also use it.
See https://webdriver.io/docs/selenium-standalone-service.html#configuration