What are you trying to achieve?
Run test with scrollTo on safari 12 and firefox 65 with WebDriver helper (WebDriverIO 5)
What do you get instead?
Provide console output if related. Use --verbose mode for more details.
TypeError: this.browser.getElementLocation is not a function
at WebDriver.scrollTo (node_modules/codeceptjs/lib/helper/WebDriver.js:1248:43)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)
Details
- CodeceptJS version: 2.0.4
- NodeJS Version: 8.14.3
- Operating System: MacOS High Sierra
- WebDriver
It's all about WebDriverIO 5 breaking changes:
const location = await this.browser.getElementLocation(elementId);
getElementLocation was deprecated. element.getLocation should be used now.
https://webdriver.io/docs/api/element/getLocation.html
I have a variant to fix it. But will do it in a few days, if someone will not do it earlier.
What are you trying to achieve?
Run test with
scrollToon safari 12 and firefox 65 with WebDriver helper (WebDriverIO 5)What do you get instead?
TypeError: this.browser.getElementLocation is not a function at WebDriver.scrollTo (node_modules/codeceptjs/lib/helper/WebDriver.js:1248:43) at <anonymous> at process._tickDomainCallback (internal/process/next_tick.js:229:7)Details
It's all about WebDriverIO 5 breaking changes:
const location = await this.browser.getElementLocation(elementId);getElementLocationwas deprecated.element.getLocationshould be used now.https://webdriver.io/docs/api/element/getLocation.html
I have a variant to fix it. But will do it in a few days, if someone will not do it earlier.