Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First you have to install the gem selenium-webdriver:</p> <p>gem install selenium-webdriver</p> <p>Then you can start your ruby program: </p> <pre><code>#You need to require the gem "selenium-driver" require "selenium-webdriver" #... see webdriver ruby api docs here: http://selenium.googlecode.com/svn/trunk/docs/api/rb/_index.html #... Most usefull classes are Driver and Element, check them out for a good start driver = Selenium::WebDriver.for :firefox driver.navigate.to "http://www.google.com" element = driver.find_element(:name, 'q') element.send_keys "Hello WebDriver!" element.submit puts driver.title driver.quit </code></pre> <p>You can find more info:</p> <p><a href="http://code.google.com/p/selenium/wiki/RubyBindings" rel="noreferrer">about webdriver and ruby (all said above was an attempt to summarize it)</a></p> <p><a href="http://selenium.googlecode.com/svn/trunk/docs/api/rb/_index.html" rel="noreferrer">about the Ruby webdriver API</a></p> <p>As you can see at a glance, the Webdriver API by itself has a different "style" of normal selenium-ruby programs... If you want to use webdriver and still continue to program with the Selenium-API, you should probably chech the Selenium2.0 Remote Server, as it seems that it will use Webdriver in a transparent way, while still mantaining the same known Selenium ruby Api</p> <p>If I'm wrong with some part of the info, please correct me and we will all together make it clearer :)</p> <p>PD: Best found info about relationship between Selenium and Webdriver was <a href="http://www.natontesting.com/2010/04/14/explaining-watir-selenium-and-webdriver/" rel="noreferrer">this</a> blog post </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload