![]() I tried the solution given by at Cannot find Chrome binary with Selenium in Python for older versions of Google Chrome but no luck. System info: host: 'jenkins-it02', ip: '10.113.0.187', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.0-1019-aws', java.version: '11.0.7'ĭriver info: driver.version: ChromeDriverĪnd this is message when I try to launch browser in command line: onTestSetup Time elapsed: 2.032 s <<< FAILURE! Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 2.116 s <<< FAILURE! - in TestSuite Then the error changed to: no chrome binary at /usr/bin/google-chrome-stable Starting ChromeDriver. Options.addArguments("-disable-web-security") Options.addArguments("-disable-gpu") //Windows Options.addArguments("-disable-browser-side-navigation") Options.addArguments("-disable-dev-shm-usage") //Linux Options.addArguments("-disable-infobars") Options.addArguments("-remote-debugging-port=9222") tBinary("/usr/bin/google-chrome-stable") tProperty("","/var/lib/jenkins/.m2/repository/webdriver/chromedriver/linu圆4/.39/chromedriver") ĭesiredCapabilities capabilities = new DesiredCapabilities() ĬtCapability("applicationCacheEnabled", true) ĬhromeOptions options = new ChromeOptions() I was getting chrome binary not found error so I set chrome binary in my code. I am executing selenium test via Jenkins server in AWS Ubuntu.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |