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

No easy way to wait for an element to be displayed #151

Open
canon-aris-van-dijk opened this issue Oct 18, 2023 · 1 comment
Open

No easy way to wait for an element to be displayed #151

canon-aris-van-dijk opened this issue Oct 18, 2023 · 1 comment

Comments

@canon-aris-van-dijk
Copy link

There is no easy way in By2 to wait for an element until it is displayed. WebDriverIO has a waitForDisplayed method, but By2 doesn't have such a method.

@licanhua
Copy link
Collaborator

use selenium (wait util)[https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/lib/until.html]

      const element = await webdriver.wait(until.elementLocated(By2.nativeName('One')));

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