are there more than buttons with the same href or text? is it in an iframe?

On Wed, May 27, 2015 at 6:00 AM, Rahul Sharma <rahulsharma....@gmail.com>
wrote:

> Try $browser.link(text: 'Cancel').click or $browser.link(href:
> '/customers').click
>
> On Wed, 27 May 2015 at 10:54 rocky <siddu0...@gmail.com> wrote:
>
>>
>> not working dude....
>>
>> i have written like below
>> $browser.div(:class, 'container').button(:class, 'cancel').click
>>
>> ----siddu
>>
>> On Tuesday, May 26, 2015 at 8:01:08 PM UTC+5:30, johnssn wrote:
>>
>>> I think cancel needs to be in quotes unless that's a variable you're
>>> using but didn't mention. Maybe try going through the parent element to get
>>> to the link if that's not it
>>>
>>> $browser.div(:class, 'container').button(:class, 'cancel').click
>>>
>>>   ------------------------------
>>>  *From:* rocky <sidd...@gmail.com>
>>> *To:* watir-...@googlegroups.com
>>>
>> *Sent:* Tuesday, May 26, 2015 7:12 AM
>>> *Subject:* [wtr-general] unable to click link
>>>
>> Hi All,
>>>
>>> i am unable to click link using below html attribute,
>>>
>>> <div class="button-container">
>>> <button class="submit">Save</button>
>>> <a class="cancel" href="/customers">Cancel</a>
>>> </div>
>>>
>>>
>>> code:
>>>
>>> $browser.button(:class,cancel).click
>>>
>>>
>>> Kindly help me...
>>>
>>> Thanks and regards,
>>> Siddu.
>>>  --
>>> --
>>> Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>>
>> watir-...@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-genera...@googlegroups.com
>>>
>>
>>>
>>> ---
>>> 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 watir-genera...@googlegroups.com.
>>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>> ---
>> 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 watir-general+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>
> ---
> 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 watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to