Update readme.md

This commit is contained in:
jvelilla
2013-05-23 07:52:30 -03:00
parent c741e41597
commit caac696465

View File

@@ -28,17 +28,23 @@ WebDriver is a tool for automating web application testing, and in particular to
class class
EXAMPLE_SEARCH EXAMPLE_SEARCH
inherit inherit
ANY ANY
redefine redefine
default_create default_create
end end
feature feature
default_create default_create
do do
search search
end end
feature -- Example feature -- Example
search search
local local
web_driver: WEB_DRIVER web_driver: WEB_DRIVER
@@ -61,7 +67,6 @@ WebDriver is a tool for automating web application testing, and in particular to
-- Now submit the form. WebDriver will find the form for us from the element -- Now submit the form. WebDriver will find the form for us from the element
l_element.submit l_element.submit
end end
if attached web_driver.get_page_tile as l_title then if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title) print ("%NPage title is:" + l_title)
@@ -71,8 +76,6 @@ WebDriver is a tool for automating web application testing, and in particular to
-- Wait for the page to load, timeout after 10 seconds -- Wait for the page to load, timeout after 10 seconds
create wait.make (web_driver, 10) create wait.make (web_driver, 10)
wait.until_when (agent expected_title(web_driver, "Eiffel Room")) wait.until_when (agent expected_title(web_driver, "Eiffel Room"))
if attached web_driver.get_page_tile as l_title then if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title) print ("%NPage title is:" + l_title)
end end
@@ -87,7 +90,6 @@ WebDriver is a tool for automating web application testing, and in particular to
Result := True Result := True
end end
end end
end end