Conversation
- add docs - add ut's
|
@christian-bromann and @erwinheitzman , This PR is the preparation for adding a "pseudo" mobile command called |
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/browser-runner
@wdio/appium-service
@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: |
erwinheitzman
left a comment
There was a problem hiding this comment.
Got some small comments but looks good overall 👌
Great work @wswebcreation!
| try { | ||
| return await element.elementClick(element.elementId) | ||
| } catch (error) { | ||
| // We will never reach this code in the case of a mobile app, the implicitWait will wait for the element but will throw |
There was a problem hiding this comment.
Let's add a check for mobile and assign the never type to it so that it is clear this code should never be reached in this particular scenario
There was a problem hiding this comment.
Not sure if I understand what you mean here, can you give some more context?
There was a problem hiding this comment.
@wswebcreation can you clarify why this catch block will never be reached for mobile apps?
christian-bromann
left a comment
There was a problem hiding this comment.
Great job 👏 will go ahead and merge as my question is not blocking.
This PR adds duration to the click command so it can be used for a
longPresson mobile.It can be used like this
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