You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebDriver (WebDriverIO 5) scrollTo does not work due to deprecated API #1517
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.
Activity
kobenguyent commentedon Feb 22, 2019
@LukoyanovE If you want, I can create a PR for this?
elukoyanov commentedon Feb 22, 2019
@peterngtr ,
If you want or if you need this as soon as possible, do.
I can start to fix it on monday, unless anybody fix.
kobenguyent commentedon Feb 22, 2019
Not huge changes, I could make it. #1519
elukoyanov commentedon Feb 25, 2019
Fixed in #1519