Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run parse_locator() on a default generated locator to make sure it's …

…okay (not null).

git-svn-id: https://svn.openqa.org/svn/selenium/trunk@2634 0891141a-5dea-0310-ad27-ebc607f31677
  • Loading branch information...
commit b3e243232a7ec6ab7e389d3cc4baf7ff51705dd7 1 parent b9163ba
gyrm authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/resources/core/scripts/ui-element.js
View
4 src/main/resources/core/scripts/ui-element.js
@@ -263,9 +263,11 @@ function UIElement(uiElementShorthand)
}
}
else {
- // try using no arguments. If it doesn't work, fine.
+ // try using no arguments. Parse the locator to make sure it's
+ // really good. If it doesn't work, fine.
try {
var locator = this.getLocator();
+ parse_locator(locator);
defaultLocators[locator] = {};
}
catch (e) {
Please sign in to comment.
Something went wrong with that request. Please try again.