Closed lavanya-vnix closed 1 year ago
Hi @lavanya-vnix, your issue seems to be with chromedriver which is no relationship with Cucumber (except that you happen to be using both of them). I’d suggest taking a look at the release notes or changelog for chromedriver to see what changed and what you need to do.
After upgraded to version 113 for chrome browser and chrome driver, couldn't able to run atomation code in chrome browser getting error as below,
Error - TypeError: chrome.Options is not a constructor.
Package json version :
"devDependencies": { "@cucumber/cucumber": "^9.1.2", "chai": "^4.3.7", "chromedriver": "^113.0.0", "cucumber": "^6.0.7", "cucumber-html-reporter": "^7.1.0", "selenium-webdriver": "^4.9.2" }, "dependencies": { "delay": "^6.0.0", "geckodriver": "^4.0.0", "totp-generator": "^0.0.14", "uuid": "^9.0.0", "webdriver": "^8.10.4" }
TO run in chrome browser : let options = new chrome.Options(); options.addArguments("--disable-web-security", "--user-data-dir=true", "--profile-directory=Default", "--allow-running-insecure-content", "--remote-debugging-port=9224"); options.setBinary('/usr/bin/google-chrome');
const capabilities = Capabilities.chrome(); capabilities.set('chromeOptions', { w3c: false}); const driver = new Builder().withCapabilities(capabilities).build();
Issue : Couldn't able to run in chrome browser with above script for latest version.
expected: Automation code should work in chrome browser for latest version and please share the script to run in chrome browser it will be very helpful. Thanks!