diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-18 17:17:14 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-19 13:03:26 +0000 |
commit | 3e79704b6351431eff25cc6c89cf2ebefc800069 (patch) | |
tree | ec9a207ccd034d068ae584359bbe84c2e5992ffc /client | |
parent | c44f8380b2f83920676fe993a240976d52437adf (diff) | |
download | vaadin-framework-3e79704b6351431eff25cc6c89cf2ebefc800069.tar.gz vaadin-framework-3e79704b6351431eff25cc6c89cf2ebefc800069.zip |
Do not use generated ids as anchor points for TestBench (#11634)
Change-Id: I831af0d72d009405ceed3e201bc135dffb43c8b2
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ComponentLocator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index 551f7bafcb..af934470c2 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -447,7 +447,10 @@ public class ComponentLocator { return null; } String elementId = w.getElement().getId(); - if (elementId != null && !elementId.isEmpty()) { + if (elementId != null && !elementId.isEmpty() + && !elementId.startsWith("gwt-uid-")) { + // Use PID_S+id if the user has set an id but do not use it for auto + // generated id:s as these might not be consistent return "PID_S" + elementId; } else if (w instanceof VUI) { return ""; |