Skip to content

Commit

Permalink
Updated webdriver.js (codeceptjs#1777)
Browse files Browse the repository at this point in the history
* Updated webdriver.js

Made changes for the fillField helper. Added a line to speed up adding of text for an element having accessibility ID. Efficiency improved for fill field for iOS guys

* Trailing space removed
  • Loading branch information
gagandeepsingh26 authored and DavertMik committed Aug 15, 2019
1 parent 55e01b7 commit d026ff1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/helper/WebDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,7 @@ async function findClickable(locator, locateFn) {

async function findFields(locator) {
locator = new Locator(locator);
if (locator.isAccessibilityId()) return this._locate(locator, true);
if (!locator.isFuzzy()) return this._locate(locator, true);

const literal = xpathLocator.literal(locator.value);
Expand Down

0 comments on commit d026ff1

Please sign in to comment.