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.

2 comments:

  1. This is a really helpful tip for anyone working with Selenium and Infragistics controls! The issue with Data Grid not getting focus before typing is a common pain point in test automation. Your solution using clickAt instead of click is elegant and practical. I've encountered similar challenges with complex UI components in my automation work. What's interesting is how test automation principles are now being applied to AI systems testing. For professionals looking to expand into AI testing and quality assurance, Gen AI and Agentic AI training with placement in Electronic City Bangalore covers these emerging areas. The ability to test both traditional applications and AI systems is becoming increasingly valuable. Great debugging tip!

    ReplyDelete