changed UI test
This commit is contained in:
parent
9d5f0dcf29
commit
b743db5b11
1 changed files with 3 additions and 9 deletions
|
@ -9,21 +9,15 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
attr_reader :browser
|
attr_reader :browser
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@browser = Selenium::Client::Driver.new \
|
browser = Selenium::WebDriver.for :firefox
|
||||||
:host => "localhost",
|
|
||||||
:port => 4444,
|
|
||||||
:browser => "*firefox",
|
|
||||||
:url => "http://kaldung.com",
|
|
||||||
:timeout_in_seconds => 60
|
|
||||||
browser.start_new_browser_session
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
browser.close_current_browser_session
|
browser.quit
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_page_search
|
def test_page_search
|
||||||
browser.open "/"
|
browser.navigate_to "http://www.google.com"
|
||||||
assert_equal "Google", browser.title
|
assert_equal "Google", browser.title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue