Showing posts with label selenium and infragistics. Show all posts
Showing posts with label selenium and infragistics. Show all posts

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.

Wednesday, November 9, 2011

Selenium and Infragistics controls - Grid dropdown

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

1. Selenium IDE records click action for selecting an item in Grid dropdown control. But, if we try to execute the same code, it will not select any item. First of all, it will not click on Grid.

Solution: If we use, doubleClick instead of click, it will fix this issue. Refer the following screenshot which will give you a clear picture.