Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 6574 by
AndyC...@gmail.com: Can't launch chrome and firefox in
ubuntu 13.10
http://code.google.com/p/selenium/issues/detail?id=6574
What steps will reproduce the problem?
1. I update chrome to v31, and update chromedriver to v2.6, then I found my
code does not work.
This is my code:
require 'selenium-webdriver'
driver = Selenium::WebDriver.for :chrome
driver.get "
http://www.baidu.com"
element = driver.find_element :id => "kw"
element.send_keys "abcdef123456!"
element.submit
puts "Page title is #{driver.title}"
driver.quit
When I run it, I get this error message.
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/chrome/service.rb:50:in
`start':
unable to connect to chromedriver
http://202.102.110.205:9515
(Selenium::WebDriver::Error::WebDriverError)
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/chrome/bridge.rb:15:in
`initialize'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:37:in
`new'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:37:in
`for'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver.rb:67:in
`for'
from selenium.rb:10:in `<main>'
Then I query the process, and found the chrome process
andy@vmu32andy02:~$ ps -ef | grep chrome
andy 3384 1814 0 10:52 pts/2 00:00:00 /usr/bin/chromedriver
--port=9515
andy 3423 2530 0 10:57 pts/2 00:00:00 grep --color=auto chrome
I have no idea why it use the ip address(202.102.110.205),it's not my ip
address, I think it should use the 127.0.0.1.
When I try the firefox browser, I also get a error message.
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/socket_lock.rb:45:in
`initialize':
Cannot assign requested address - bind(2)
(Errno::EADDRNOTAVAIL)
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/socket_lock.rb:45:in
`new'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/socket_lock.rb:45:in
`can_lock?'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/socket_lock.rb:31:in
`lock'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/socket_lock.rb:17:in
`locked'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
`launch'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/firefox/bridge.rb:24:in
`initialize'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:31:in
`new'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:31:in
`for'
from
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver.rb:67:in
`for'
from selenium-firefox.rb:5:in `<main>'
Selenium version: 2.37.0
OS: Ubuntu 13.10 32bit
Browser: chrome & firefox
Browser version: chrome_31 & firefox_25
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings