[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread Joaquin Rivera Padron
is it too difficult to define the id? check the rdoc, there are others, but unique should be id (html specs) 2009/3/10 nagmani vm nagman...@gmail.com id also not defined what other option is there to identify?? On 3/10/09, Joaquin Rivera Padron joahk...@gmail.com wrote: ie.button(:id,

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread kiran yajamanyam
Send a screen shot of the attributes. That will help I think Regards, Krian Y On Tue, Mar 10, 2009 at 5:05 PM, nagmani vm nagman...@gmail.com wrote: id also not defined what other option is there to identify?? On 3/10/09, Joaquin Rivera Padron joahk...@gmail.com wrote: ie.button(:id,

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread bwaybandit
can u post the html that describes your button? On Mar 10, 6:45 am, Nagu nagman...@gmail.com wrote: I have a button in my application and its having 2 properties/ attributes on click and type.the values are onclick:this.value=check (this.form.selections) and type:button.So how can i click

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread SQAPro
If all else fails you can use :index usually to identify an element as the nth occurance of that element on the page. Personally I REALLY hate doing that because it's one of the most fragile things you can do other than using specific x,y coordinates and almost always results in code that

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread SQAPro
FYI 'onclick' isn't a property of the button.. it's a javascript event type, in this case it's defining what actions the java code is to take when the event occurs (e.g. when the button is clicked) You can't use that as a means to identify the button. On Mar 10, 3:45 am, Nagu