Assertion for an element to be displayed #566
Unanswered
brunohaller
asked this question in
Q&A
Replies: 1 comment 1 reply
-
To assert that a control was really found with wdi5 you can do something like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
with native webdriverIO selectors, we would usually use something like
await expect(selector).toBeDisplayed()
to wait for an element to appear and assert if it does not.
What is the closest wdi5 equivalent to this?
I assume that when using
asControl
it is already a blocking / failing operation and it would not make sense to executeexpect
on the result, at least not on the control itself (only text or other attributes after successfully finding a control).Best Regards,
Bruno
Beta Was this translation helpful? Give feedback.
All reactions