fixed UI test

This commit is contained in:
roy 2012-11-12 20:35:46 +01:00
parent 000d7040e3
commit ffb9b15ad4

View file

@ -22,6 +22,7 @@ class ExampleTest < Test::Unit::TestCase
end end
def test_login_failed def test_login_failed
puts "Page title is #{browser.title}"
element_username = browser.find_element :name => "username" element_username = browser.find_element :name => "username"
element_username.send_keys "roy@kaldung.de" element_username.send_keys "roy@kaldung.de"
element_password = browser.find_element :name => "password" element_password = browser.find_element :name => "password"
@ -32,6 +33,7 @@ class ExampleTest < Test::Unit::TestCase
end end
def test_login_passed def test_login_passed
puts "Page title is #{browser.title}"
element_username = browser.find_element :name => "username" element_username = browser.find_element :name => "username"
element_username.send_keys "roy@kaldung.com" element_username.send_keys "roy@kaldung.com"
element_password = browser.find_element :name => "password" element_password = browser.find_element :name => "password"