Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How wait till Element not present #4075

Open
LiliiaKi opened this issue Feb 2, 2024 · 1 comment
Open

How wait till Element not present #4075

LiliiaKi opened this issue Feb 2, 2024 · 1 comment

Comments

@LiliiaKi
Copy link

LiliiaKi commented Feb 2, 2024

Your question

Hello,

I need to measure page and wait till spinner will disappear. I try to do it with Selenium as:
driver.manage().setTimeouts({ implicit: 300000 });
driver.wait.until(ExpectedCondition.invisibilityOfElementLocated(By.class("spinner")));

and catch
ERROR: ReferenceError: ExpectedConditions is not defined

What I do wrong?

@soulgalore
Copy link
Member

Hi @LiliiaKi I think today we don't have any convenient method for checking an element disappears. You can use Selenium directly https://www.sitespeed.io/documentation/sitespeed.io/scripting/tutorial-10-Selenium.html

I wanted to check the Selenium documentation at https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/index.html but it seems to be down at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants