How to make waitForElementNotPresent() work by the element id (internal id, received by element.getId())? #4353
Answered
by
MurzNN
MurzNN
asked this question in
Help Needed
|
I need to wait when a frontend component is rerendered after clicking on the component button. It rerenders with the same HTML content, so use CSS selectors or something similar will not work. A possible way to check this is to wait when the previous HTML element of the component disappears by the element id (internal id), that I can get by the But I can't find a way to pass this id to the function If not, what alternatives for my case can you suggest? |
Answered by
MurzNN
Jan 10, 2025
Replies: 1 comment
|
Found a solution for this challenge! const webdriver = require("selenium-webdriver");
const el1d = await browser.element('.myElement').getId();
browser.waitForElementNotPresent(webdriver.By.id(elId)); |
0 replies
Answer selected by
MurzNN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a solution for this challenge!