Automation Tests using DevExpress Grids with WatiN
I am currently using DevExpress grids
an开发者_开发知识库d I am now writing automation tests using WatiN, the problem I'm having is adding and removing columns functionality. I was able to drag and drop the column but does not seem to work, looks like when WatiN talks to the DOM the devexpress javascript methods do not get run.
Anybody been able to get this to work?
Or know a way to add/remove (hide/show) columns in devexpress via javascript?
Unfortunately, we have not tried WatiN and thus, cannot suggest a solution to this problem. However, please note, that the grid is a pure server side control. It means, that its rendering is done on the server. I.e. when you hide / add a new column in the client side, the request(callback) is sent to the server. Anyway, there is a way to hide / show columns using java script using the gridView's client side MoveColumn method. NOTE, this method just sends a callback to the server and thus it will result in a server request. Finally, the complete ASPxGridView client side API is published at:
ASPxClientGridView Members
精彩评论