Hi
Your code is missing something. Try this one
require "test/unit"
require "rubygems"
require "selenium"
class MyTestClass < Test::Unit::TestCase
def setup
@verification_errors = []
@selenium = Selenium::Client::Driver.new(
"localhost",
4444,
"*firefox",
"http://tutorialspoint.com/",
30 )
@selenium.start
end
def teardown
@selenium.stop unless $selenium
assert_equal [], @verification_errors
end
def test_task
@selenium.open "/ruby/ruby_hashes.htm"
@selenium.click "link=Ruby Date & Time"
@selenium.wait_for_page_to_load "30000"
@selenium.type "q", "module"
@selenium.click "//inp...@name='sitesearch' and
@value='www.tutorialspoint.com']"
@selenium.click "sa"
@selenium.click "link=Ruby Ranges"
@selenium.wait_for_page_to_load "30000"
@selenium.click "link=Ruby Iterators"
@selenium.wait_for_page_to_load "30000"
end
end
It is working fine in my system.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.