Quantcast
Channel: (Agile) Testing
Viewing all articles
Browse latest Browse all 10

Getting rid of Google Web Toolkit’s x-auto id

$
0
0

When creating automated UI tests for an application that is build with the Google Web Toolkit (GWT), it can be quite annoying to have to deal with the HTML IDs the framework automatically generates. Those usually start with x-auto-, followed by a number.

To remove all automatically generated IDs, open the browser dev tools and run the following snippet in the console:

document.querySelectorAll('*[id^=\'x-auto-\']').forEach(e=>e.removeAttribute('id'));

Viewing all articles
Browse latest Browse all 10

Trending Articles