Skip to content

Commit

Permalink
[js] Convert the webdriver.until namespace to a node module
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed Feb 9, 2016
1 parent 4b2a5f2 commit c9fa790
Show file tree
Hide file tree
Showing 3 changed files with 820 additions and 2 deletions.
5 changes: 3 additions & 2 deletions javascript/node/selenium-webdriver/lib/by.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class By extends LegacyBy {
}

/**
* Locates link elements whose
* Locates link elements whose
* {@linkplain webdriver.WebElement#getText visible text} contains the given
* substring.
*
Expand Down Expand Up @@ -247,7 +247,8 @@ class By extends LegacyBy {

/** @override */
toString() {
return this.constructor.name + '(' + this.using + ', ' + this.value + ')';
// The static By.name() overrides this.constructor.name. Shame...
return `By(${this.using}, ${this.value})`;
}
}

Expand Down
Loading

0 comments on commit c9fa790

Please sign in to comment.