| Module | Selenium::Client::Base |
| In: |
lib/selenium/client/base.rb
|
Driver constructor and session management commands
| browser_string | [R] | |
| browser_url | [R] | |
| default_javascript_framework | [R] | |
| default_timeout_in_seconds | [R] | |
| highlight_located_element_by_default | [R] | |
| host | [R] | |
| port | [R] |
Create a new client driver
Example:
Selenium::Client::Driver.new # :host => "localhost",
:port => 4444,
:browser => "*firefox",
:timeout_in_seconds => 10,
:url => "http://localhost:3000",
You can also set the default javascript framework used for :wait_for AJAX and effects semantics (:prototype is the default value):
Selenium::Client::Driver.new # :host => "localhost",
:port => 4444,
:browser => "*firefox",
:timeout_in_seconds => 10,
:url => "http://localhost:3000",
:javascript_framework => :jquery
You can also enables automatic highlighting of located elements by passing the highlight_located_element option, e.g.
Selenium::Client::Driver.new # :host => "localhost",
:port => 4444,
:browser => "*firefox",
:highlight_located_element => true