Improve the example, Added a new class WEB_DRIVER_WAIT, still under development.

Update web driver, to define time outs.
This commit is contained in:
jvelilla
2013-05-03 10:43:48 -03:00
parent dcdc700bac
commit 8535a8378c
3 changed files with 71 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ feature -- Example
search
local
web_driver : WEB_DRIVER
wait : WEB_DRIVER_WAIT
do
--Create a new instance of a Web driver
create web_driver.make
@@ -31,9 +32,15 @@ feature -- Example
l_element.submit
end
if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title)
end
create wait.make (web_driver,0)
wait.wait ("Eiffel Room")
if attached web_driver.get_page_tile as l_title then
print ("Page title is:" + l_title)
if attached web_driver.get_page_tile as l_title then
print ("%NPage title is:" + l_title)
end
-- close the window