should i file a bug with watir-webdriver?

I can't really think of a faster way of doing the validation of this area, 
and i need to start using webdriver to test firefox and chrome. There's 
probably 10 cases that have validations of this area and i can't run those 
tests if it's going to take ~17 minutes per test.   

On Monday, December 23, 2013 3:46:01 PM UTC-8, hillary wrote:
>
> I have a test that takes upwards of 15 minutes or more to complete when 
> running it in webdriver(ie, firefox, chrom) v classic for ie (which takes 
> 35s). I'm using taza with turnip as the test framework, running on windows 
> 7x64 bit with ruby 2.0. 
>
> Most of the test runs at a fine speed, but the step of the test that bogs 
> everything down is this loop 
>
>     (1..slots).each do |s|
>       @site.slotting.slot_title(@variant_id, s).text.should eq s.to_s
>       @site.slotting.slot_checkmark(@variant_id, s).should exist
>     end
>
>
> This is how i defined those elements: 
>     element(:slot_title) {|variant_id,index| browser.div(:id, 
> "grid_Variant_#{variant_id}").div(:id, 
> "cpsess-#{variant_id}").table.tr.td(:index, 
> 5).table.tr.td(:index, index).div(:index, 0)}
>     element(:slot_checkmark) {|variant_id,index| browser.div(:id, 
> "grid_Variant_#{variant_id}").div(:id, 
> "cpsess-#{variant_id}").table.tr.td(:index, 
> 5).table.tr.td(:index, index).div(:index, 1).image(:src, /checkmark.png/)}
>
> I currently have to use indexes because it is not fesable to ask for ids 
> for each tr/td element at this time. 
>
>
> So i'm wondering two things: 
>
>    1. Why is the following loop significantly slower in watir-webdriver? 
>    2. Is there a better way to write this validation. I'm trying to 
>    validate that all of the Columns in the highlighted section of the 
> attached 
>    screenshot have a checkmark underneath the number. 
>    
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to