This is a migrated thread and some comments may be shown as answers.

Fire grid change event from Selenium IDE

1 Answer 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 23 May 2013, 09:05 AM
I'm currently trying to put some simple automated testing into an application using Selenium IDE but have hit a problem that I don't appear to be able to trigger the grid change event.

The grid is set up for row selection and works fine when a user is actually using the app and clicks on the row, however, in Selenium IDE I have tried adding an action for click  against the row but the change event never fires.  I've also tried using the mousedown action instead and using the fireEvent action with both click and mousedown but also no change event, I've even go so far as to try a click & mousedown against every cell in the row but also no change event.

Can anybody tell me how I can trigger the change event from Selenium IDE or Javascript?

1 Answer, 1 is accepted

Sort by
0
Accepted
Nathan
Top achievements
Rank 1
answered on 23 May 2013, 09:31 AM
Typical I find the solution just after I post, it will raise the change event if you use the Selenium IDE action clickAt.

Why this works I'm not entirely sure but my guess is that the click is attempting to fire the click event on the actual element whereas the clickAt must be simulating a click in the browser triggering the event.

Hopefully this may help anyone else that runs into this.
Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Nathan
Top achievements
Rank 1
Share this question
or