@browser.button(:text, /Delete account/i).when_present(10).click
From: Vamsi Mandapati vamsi.mandap...@gmail.com
To: watir-general@googlegroups.com
Sent: Friday, August 30, 2013 4:27 AM
Subject: [wtr-general] Unable to click on a button using css and its name
Here is my snippet
delete_account= @browser.element(:css = p.actions button[name:'delete'])
delete_account.click
and here is my html
htmlhead
body
div class=header-wrapper
div class=headerUpdate your Profile/div
/div
form method=post action=
input type=hidden name=_utf8 value=☃
p
p class=actions
input style=float: right id=submit type=submit name=Create
account value=Update profile
button name=cancel style=padding: 10px 10px
onclick=window.close(); return falseCancel/button
button name=delete style=padding: 10px 10px
onclick=window.location.href =
'https://ww.mysite.com/plugins/social/profile/delete?sessionKey=52205ce9e4b04782e12a79ecwebSocketIdentifier=52205ce9e4b04782e12a79eb';
return falseDelete account/button
/p
--
--
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/groups/opt_out.
--
--
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/groups/opt_out.