Hi Venki,
Any luck ?
I am also facing the same issue. Please reply to me about this issue...
Awaiting your reply..
On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote:
I wrote a code to click on button
ie.button(:id, action_button).click
But I am getting following
Hi Raveendran,
I think there could be a hidden button existed on the page with same
properties of the button you are trying to click. Try to use index
property along with the current button value property.
Ex:
ie.button(:id=/action_button/,:index=2).click
try to verify index value with 1,2,3.
Try this
ie.button(:id, action_button).click_no_wait
On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote:
I wrote a code to click on button
ie.button(:id, action_button).click
But I am getting following errors:
C:\Documents and Settings\\Desktopruby two-minute.rb
2009/5/30 Venkat venkateshla...@gmail.com
object id and action_button is disabled
(Watir::Exception::ObjectDisabldException)
Well, you are clicking element that is disabled. Have you read the error
message? :)
Watir says it can not click a button because it is disabled. Take a look why
is it
Yeah Z is correct I think, you are trying to click it before it's
enbled.
it seems like perhaps this button is inhereting some functionality via
CSS or some other means. In the HTML you give, there's no label for
it, there's no functionlity attached to it, it's just like a template
waiting to
Hi Wesley,
Thanks for reply.
I did try ie.element_by_xpath(//butt...@id='action_button']/).click
in my test case. Now I don't get any errors, but still It does not
click the action_button.
I did went through the xpath discussion on watir general group and
tried other work arounds like
Hi Karim,
I have added HTML source of the page with button in question ?? Let me know
in case of any questions. Thanks
Thanks
Venkatesh
On Sun, May 31, 2009 at 12:40 PM, Venkat venkateshla...@gmail.com wrote:
Hi Wesley,
Thanks for reply.
I did try
I think it is not a common button, but defined in the css.
You may try the xpath solution as below:
ie.element_by_xpath(//butt...@id='action_button']/).click
In fact, when you search in the Watir General, there are many discussion and
solution about XPATH deal with, of course, if you are