AyeSpy icon indicating copy to clipboard operation
AyeSpy copied to clipboard

Pass more of selenium-webdriver into scripts

Open milesillsley opened this issue 5 years ago • 1 comments

BREAKING CHANGE

atm =>

import { By } from 'selenium-webdriver';

export function executeScriptWithDriver(driver, script) {
  return execute(script, driver, By);
}

This limits functionality of the scripts. I wanted to wait for an element after clicking on one, and the waitForElement functionality happens only after the onReady script.

Within the script i was unable to wait for lack of webdrivers' until

milesillsley avatar Apr 10 '19 16:04 milesillsley

ok, maybe not the whole thing

milesillsley avatar Apr 10 '19 16:04 milesillsley