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

[Solved] FindElement of webdriver not working in telerik grids when not viewed.

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suhrid
Top achievements
Rank 1
Suhrid asked on 10 Jan 2012, 05:27 AM
I am facing a strange problem with my selenium webdriver qa automation 
project. 

FindElementByXPath(element).Click(); seems to work fine when running it in my local machine but then does not work when i try to run the same code 
on test controller machine. Actually it runs fine when you see the tests running on the test controller machine and if you minimize the test controller window it fails the test. The application uses telerik rad grids. I have implemented a code to right click on grid header. After right clicking on the grid header i am supposed to click on Reset Columns from the context menu. But in this case FindElementByXPath(resetElement).Click(); does not work. It works 

when you view it but does not work when minimize the mstsc window.The error shown is Open.QA.Selenium.ElementNotVisibleException: Cannot 

click on element. It is able to find the element but can't click on it. 

How do I solve this ??

1 Answer, 1 is accepted

Sort by
0
Madhu
Top achievements
Rank 1
answered on 06 May 2013, 02:58 PM
Hi Suhrid,
Did you find a solution for this? I am having a similar issue. I am able to login to my application through selenium webdriver, but fails to click on a tab. I tried manually clicking on the tab and the link doesn't seem to be working. But when I open the app in a separate window manually and tried to login and click on the tab, the link works. This seems to be something to do with the telerik controls. Please help!

Thanks,
Madhu.
Tags
Grid
Asked by
Suhrid
Top achievements
Rank 1
Answers by
Madhu
Top achievements
Rank 1
Share this question
or