Hi,
Can you please share the screenshot , Ruby code and HTML code for the
same to debug the issue.
For now:
1. Can you please try to focus the approve button before click
browser.button(:text,'Approve').when_present.focus
browser.button(:text,'Approve').when_present.click
On Thu, Jun 12, 2014 at 12:21 PM, MinYi <[email protected]> wrote:
> Hi,
>
> I'm developing watir script using watir-webdriver and browser is firefox
> In the same frame I have 2 buttons which are 'Deny' and 'Approve', when
> developing the script, when my action require the 'Deny' button to be
> clicked,
> the sript run correctly without any problem. However, when the 'Approve'
> button need to be clicked, I'm using the same command but it can't worked.
> Any ideas regarding on how can I solve it..? Both the buttons in the same
> frame and same div. The command I using are the same as well except for the
> id value to identify the button.
> Thanks..
>
> --
> --
> 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.
>
--
Regards,
P.Raveendran
http://raveendran.wordpress.com
--
--
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.