How to make waitForElementNotPresent() work by the element id (internal id, received by element.getId())? #4353
-
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? |
Beta Was this translation helpful? Give feedback.
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)); |
Beta Was this translation helpful? Give feedback.
Found a solution for this challenge!