[wtr-general] Re: asset_enabled error to click a button

2009-07-18 Thread Raveendran P
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

[wtr-general] Re: asset_enabled error to click a button

2009-07-18 Thread sHiVa
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.

[wtr-general] Re: asset_enabled error to click a button

2009-06-01 Thread Swapnal
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

[wtr-general] Re: asset_enabled error to click a button

2009-06-01 Thread Ċ½eljko Filipin
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

[wtr-general] Re: asset_enabled error to click a button

2009-06-01 Thread Chuck van der Linden
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

[wtr-general] Re: asset_enabled error to click a button

2009-05-31 Thread Venkat
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

[wtr-general] Re: asset_enabled error to click a button

2009-05-31 Thread Venkatesh Lanke
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

[wtr-general] Re: asset_enabled error to click a button

2009-05-30 Thread Wesley Chen
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