Thursday, November 10, 2011

Selenium and Infragistics controls - Data Grid

When we work with Selenium IDE and infragistics contorls - Data Grid, we might experience the following issues.

1. Selenium IDE records click and type actions for typing text in Data Grid control. But, if we try to execute the same code, it will not type anything in Data Grid. The Gird has to be focused first, otherwise the type command will not work. When we use click command, the Gird will not get focus.

Solution: Instead of click, we need to use clickAt command which will fix this issue. Once we use clickAt, the grid will get the focus, then we can use type command to add some text.

clickAt [locator] [x,y]

Refer the following screenshot which will give you a clear picture.

1 comment: