Hi,
Iam new in Watir. We are designing a web site through which user can
buy items like we have in AMAZON.
I have written a script to capture the landing page load response
timing (see below)
require 'watir' # watir controller
include Watir
require 'test/unit'
#require 'watir/WindowHelper'
class TC_TimeResponse < Test::Unit::TestCase
def test_TimeResponse
ie = Watir::IE.new
ie.goto("URL")
ie.text_field(:name, 'userName').set('')
ie.text_field(:name, 'password').set('')
ie.button(:value, 'Login').click
ie.maximize
ie.image(:src, /logo/).click
p 'ie.down_load_time_Home Page for 85:
'+ie.down_load_time.to_s
end
end
This script works fine and it displayed the page load timing in
console.
Basically, the landing page contains information about 9 items along
with their image of fixed size 79 * 79.
I observed that sometime the script runs and displayed the result of
page load timing but few of the images is still not loaded.
My question:-
1. How I can verify whether all the images have been loaded or not?
2. Is there any other way to find out the actual page load timing
including the images of the items.
Please this is an urgent requirement for my project.
Waiting for solution.
Thanks
Maumita
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---