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

[Solved] MVC Grid using ClientEvents OnDataBinding and Selenium

0 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jesse Sanders
Top achievements
Rank 1
Jesse Sanders asked on 09 Dec 2010, 05:00 PM
I am seeing some peculiar behavior when using the MVC grid with ClientEvents for OnDataBinding.  I recently changed some of my grids to delay binding using the ClientEvents as follows:

.ClientEvents(events => events.OnDataBinding("FutureAppointments_onDataBinding"))

This gives me the ability to get variables that I need that are only available once the page is fully rendered.  It works perfectly until I start testing it with Selenium.  I wait for the page to load as well as for all Ajax to complete before I attempt to click a menu item to go to my next page.  When I click the menu item, I get the following error:

ERROR: There was an unexpected Alert! [error]

if I comment out the ClientEvents line for the grid, it works perfectly.  I have even added a sleep command for 5 seconds before attempting to move to the next command, and I still get the error.

Any ideas on what could be causing this issue?

Thanks,

Jesse
Tags
Grid
Asked by
Jesse Sanders
Top achievements
Rank 1
Share this question
or