Not able to automate GWT developed app using webdriver

Hi Everyone,

I have one query related to automation of web application using Selenium webdriver. During testing I’m suffering from some problems like:

1. We are using Google Web Toolkit (GWT) as a development toolkit for
building browser-based applications.

2. I wrote one test script using their backend attrributes like ID and name, but the script was failing every time because ID and name is changing in every execution.
So I managed to write relative X-path for webelements which are present in Window and it started working.

3. But the problem is elements which are present in frame, for these web elements in Firepath Xpath is found but while executing the script in webdriver, test scripts are throwing NoSuchElementException as the ID, name as well as Class value is changing.

Please help we with it. How to catch the web elements which are developed using GWT framework.

Please reply ASAP.


Pankhuri Default Asked on February 2, 2016 in Selenium WebDriver.


Can you share HTML/DOM & your code-snippet, to take a look?


on February 4, 2016.
Add Comment
1 Answer(s)

You would need extensive knowledge of Xpath to deal with GWT.
For #3, in your script you might have to go inside the frame(driver.switchTo().frame() before doing anything with the element if you element is inside a frame.

sarahuq Default Answered on February 3, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.