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 <[email protected]>
To: [email protected]
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.
[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.
--
--
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.