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
Describe the bug
isExisting() is expected to return false if the DOM is not present. Instead it returns below error
ERR: - Error: No DOM element found using the control selector
To Reproduce
invoke .isExisting() on any element not present
Expected behavior
isExisting() should return false
Logs/Console Output
[browser wdi5] ERR: - Error: No DOM element found using the control selector {"
**Screenshots**
if applicable, add screenshots to help explain your problem.
**Runtime Env (please complete the following information):**
- `wdi5/wdio-ui5-service`-version: 2.0.6
- `UI5` version: 3.9.0
- `wdio`-version (output of `wdio --version`): 8.32.3
- `node`-version (output of `node --version`): v18.14.0
**Additional context**
Add any other context about the problem here,
e.g. any options the target browser is started with like `--headless` or
if the tests run in a CI environment
The text was updated successfully, but these errors were encountered:
BavithiraG
changed the title
isExisting() returns Error if DOM present
isExisting() returns Error if DOM is not present
Apr 17, 2024
this is a little hard to grasp as there's no minimal reproducible sample provided, not even sample code.
yet I'm guesstimaiting you're referring to the wdio (not wdi5!) element method .isExisiting() → https://webdriver.io/docs/api/element/isExisting wdi5 sits on top wdio. So if you're doing something along the line await exists = browser.asControl(selector).$().isExisting(); expect(exists).toBe(false)
this will fail b/c browser.asControl() can't retrieve the DOM element (as it doesn't exist, meh) and subsequent operations on that are not possible.
Instead, please use await exists = await browser.asControl(selector).isInitialized(); expect exists.toBeFalsy()
Describe the bug
isExisting() is expected to return false if the DOM is not present. Instead it returns below error
ERR: - Error: No DOM element found using the control selector
To Reproduce
invoke .isExisting() on any element not present
Expected behavior
isExisting() should return false
Logs/Console Output
[browser wdi5] ERR: - Error: No DOM element found using the control selector {"
The text was updated successfully, but these errors were encountered: