click event on a data grid , check box

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

click event on a data grid , check box

Muaaz
Hi ,

There is a simple thing to be done ,that is i want to click a check box in a data grid . so as a tradition i used click event to check the checkbox in the data grid. but unfortunately it doesn't worked out well , so i used several ways to overcome that problem , i used focus event ,mouseover , etc .. but no luck , when i used selenium IDE it works , when we run through selenium remote the problem occurs (it skip the event).

I found some articles have mention to used mousedown and up events also ... please let me know a solution for this.this is a urgent requirement for me.


 
Reply | Threaded
Open this post in threaded view
|

Re: click event on a data grid , check box

softwaretestingforum
Administrator
I have used mousedown  and up in past for this.
Did you try that?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: click event on a data grid , check box

Muaaz
i ll try that and let u know

tarun ....

Thank you ,
Reply | Threaded
Open this post in threaded view
|

Re: click event on a data grid , check box

Muaaz
it worked with mouseDownAt and upAt EVENT with XY coordinates , ... y this is like this ... this should be a bug in selenium , ...  :-)
Reply | Threaded
Open this post in threaded view
|

Re: click event on a data grid , check box

softwaretestingforum
Administrator
I would not suggest using co-ordinates.
I had similar issued with typing in textarea today and I used combination of  -

mouseDown("locator");
mouseUp("locator");
typeKeys("locator", testdata);

and this worked for me.
Try avoid using coordinates as much as possible for obvious reasons.
~ seleniumtests.com