How to execute Webdriver test in IE browser using Ruby

617 views
Skip to first unread message

Tulsi tester

unread,
Dec 31, 2014, 5:35:30 AM12/31/14
to seleni...@googlegroups.com
Hi All,

I am facing problem while executing my test against IE browser. I have downloaded IEDriverServer.exe file and put the path in environment path.(C:\driver\IEDriverServer). I am getting the following error message. 


C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/ie/server.rb:14:in `get': Unable to find standalone executable. Please download the IEDriverServer from http://selenium-release.storage.googleapis.com/index.html and place the executable on your PATH. (Selenium::WebDriver::Error::WebDriverError)
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/ie/bridge.rb:24:in `initialize'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:35:in `new'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:35:in `for'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver.rb:67:in `for'
from E:/RubyLearning/webDriverProject/First/FirstWebDriverTest.rb:6:in `<class:FirstTest>'
from E:/RubyLearning/webDriverProject/First/FirstWebDriverTest.rb:3:in `<main>'

and my code is 


require "selenium-webdriver"

class FirstTest
  
  
  driver = Selenium::WebDriver.for :ie
  driver.get("http://www.google.com")
  
  puts driver.title()
  
  driver.quit()
  
end



Please help me how to resolve this. I am newbie to RUBY.

Selenium Framework

unread,
Jan 2, 2015, 9:52:44 AM1/2/15
to seleni...@googlegroups.com
Two things you can try .

1) After setting in PATH , first open a cmd.exe and type 'IEDriverServer.exe' - it should say something like ..."server started on port..."
2) If 1) looks good and still you get the error, try insalling Ruby 32 bit and not 64 bit -- I have had inconsistent behavior with ruby x64.

Lastly check that you are following the steps correctly --  Follow the Basic tutorial on www.seleniumframework.com

Tulsi tester

unread,
Jan 5, 2015, 12:35:17 AM1/5/15
to seleni...@googlegroups.com
Thank you. It is working after closing the editor followed by path setting.
Reply all
Reply to author
Forward
0 new messages