Skip to content

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
Discussion options

You must be logged in to vote

Found a solution for this challenge!

const webdriver = require("selenium-webdriver");

const el1d = await browser.element('.myElement').getId();
browser.waitForElementNotPresent(webdriver.By.id(elId));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MurzNN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant