# Focus on last known input and tab to the next field, 
$browser.text_field(:id, 'password').send_keys( :tab ) 
$browser.send_keys( :space, :tab )   #checkbox 1
$browser.send_keys( :space, :tab )   #checkbox 2


On Wednesday, November 6, 2013 4:04:42 PM UTC-6, Mihir Dhandhusaria wrote:
>
> This is my html 
>
> <label for="termsAgree" class="checkbox">
>     <span class="sprite"></span>
>     <input type="checkbox" name="termsAgree" data-original-title="" 
> title=""> 
>     <span class="message">I agree to the <a href="/termsandconditions" 
> target="_blank" class="inline" title="Terms and Conditions">Terms and 
> Conditions</a></span>
> </label>
>
> I tired following things and none of them seems to be working.
>
> Option 1:
>   $browser.label(:class => 'checkbox').parent.checkbox(:name => 
> 'termsAgree').set 
>
> Option 2:
>  $browser.checkbox(:name => 'termsAgree').focus
>
>
> Any help is appreciated. 
>
> Thanks 
>
>
>
>

-- 
-- 
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/d/optout.

Reply via email to