I tried it just now..it did'nt worked :(
Same issue
*Unable to locate element, using {:tag_name=>["button", "submit", "image",
"reset"], :text=>"Ok"}*
On Tue, Jan 15, 2013 at 10:28 PM, Joe Fl <[email protected]> wrote:
> hi,
>
> Can you just do this.. *$ie.button(:text=>'Ok').click*
> *
> *
> *Joe
> *
> On Tuesday, January 15, 2013 9:50:57 AM UTC-7, Deepak Kumar wrote:
>>
>> Hi,
>>
>> following is the HTML code
>>
>> *<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">*
>> *<button type="button" class="ui-button ui-widget ui-state-default
>> ui-corner-all ui-button-text-only" role="button" aria-disabled="false">*
>> *<span class="ui-button-text">Ok</span></button></div>*
>>
>> How i can click the span.
>> I used the following code.but it did'nt helped :(
>>
>> *$ie.div(:class , "ui-dialog-buttonpane ui-widget-content
>> ui-helper-clearfix").button(:class,"ui-button ui-widget ui-state-default
>> ui-corner-all ui-button-text-only").span(:class,"ui-button-text").click*
>>
>> I am getting the following error
>>
>> *Unable to locate element, using {:class=>"ui-dialog-buttonpane
>> ui-widget-content ui-helper-clearfix", :tag_name=>["div"]}*
>>
>> --
> 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]
>
--
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]