You're passing a string instead of a number.  Change

$ie.span(:class => "x-btn-icon refresh", :index => "3").click

to

$ie.span(:class => "x-btn-icon refresh", :index => 3).click

Dan

On Thursday, December 5, 2013 4:07:26 AM UTC-5, Bhavesh wrote:
>
> Hi
>  
> I just upgraded to watir webdriver.
>  
> Using ruby 193.
>  
> Im using this expression to click on third refresh button in my page :
>  
> $ie.span(:class => "x-btn-icon refresh", :index => "3").click
>  
> But then it shows me error as :
>  
> "failed expected Fixnum, got "3":String"
>  
> this use to work with my earlier version of watir 1.6.2 and ruby 1.8.7.
>  
> So what changes i need to do so that this command work and clicks on third 
> refresh button.
>  
> Any help is apreciated.
>  
> Thanks
> bhavesh
>

-- 
-- 
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