fix: direction and scrollableElement error#14023
Conversation
- update code and fix tests
wswebcreation
left a comment
There was a problem hiding this comment.
I'm trying to debug the "scrollableElement" malformed id error, but can't reproduce it. Still checking it
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/appium-service
@wdio/browser-runner
@wdio/browserstack-service
@wdio/cli
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/dot-reporter
@wdio/firefox-profile-service
@wdio/globals
@wdio/jasmine-framework
@wdio/json-reporter
@wdio/junit-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/sauce-service
@wdio/shared-store-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/smoke-test-service
@wdio/spec-reporter
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/testingbot-service
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
webdriver
webdriverio
commit: |
This doens't seem to be an issue, but the code of the user is. So stopping my investigation. PR is ready to review :D |
| // - left | ||
| // of the element. These positions will contain the x and y coordinates on where to put the finger | ||
| const { x, y, width, height } = await browser.getElementRect(scrollableElement?.elementId) | ||
| const { x, y, width, height } = await browser.getElementRect(await scrollableElement?.elementId) |
There was a problem hiding this comment.
Hmm, might this fix the error @Dinh246 was talking about? I first tested it on my machine with the old code and there was no issue. Then after running the adjusted appium-boilerplate code on GHA+Sauce I got the same error with the current webdriveriopackage, see https://github.com/webdriverio/appium-boilerplate/actions/runs/12587209761/job/35082582798#step:9:221
There was a problem hiding this comment.
Hmm, it might be, it's now also fails on iOS, see https://github.com/webdriverio/appium-boilerplate/actions/runs/12587209746/job/35082583004#step:7:254
This seems to be working on my machine due to the M3 and not on slower machines. So this fix might solve the issue
christian-bromann
left a comment
There was a problem hiding this comment.
This makes sense to me 👍
This PR fixes #14019
Proposed changes
Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
Reviewers: @webdriverio/project-committers