selenium - Chrome not working with Robotframework / Selenium2Library -
i trying use chrome browser test cases. same tests work fine firefox , phantomjs. , chrome browser starts never opens page.
i have installed 1. chromdriver : port=9515 version=19.0.1068.0
2. chrome : version : 37.0.2062.120 (64-bit)
3. selenium: version : 2.42.1
4. robotframework : version : 2.8.5
i think have paths variables configured accordingly well.
google-chrome , starts chrome
chromedriver , starts chromedriver
following line responsible starting chrome , opening page.
*** variables *** ${browser} chrome ${my-url} http://www.google.com/ open browser | ${my-url} | ${browser}
errors :
chrome:
webdriverexception: message: u'unable either launch or connect chrome. please check chromedriver up-to-date. using chrome binary at: /opt/google/chrome/google-chrome'
webdriver logs shows error
initializing session capabilities { "browsername": "chrome", "chromeoptions": { "args": [ ], "extensions": [ ] }, "javascriptenabled": true, "platform": "any", "version": "" } [1.001][info]: launching chrome: /opt/google/chrome/google-chrome --disable-hang-monitor --disable-prompt-on-repost --dom-automation --full-memory-crash-report --no-default-browser-check --no-first-run --ignore-certificate-errors --homepage=about:blank [46.004][severe]: failed initialize connection <br><br>
can point missing ? anyother way of debuging problem ? clue good.
have put chromedriver in path ?
and run test current user or root ?
selenium needs chromedriver call chrome, can download google.com , put in /usr/bin, or update path environment variable. then, on debian, root can't (otherwise errors) call google-chrome browser, try account.
hope helpful.
Comments
Post a Comment