selenium-appium icon indicating copy to clipboard operation
selenium-appium copied to clipboard

No easy way to wait for an element to be displayed

Open canon-aris-van-dijk opened this issue 2 years ago • 1 comments

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.

canon-aris-van-dijk avatar Oct 18 '23 13:10 canon-aris-van-dijk

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')));

licanhua avatar Oct 25 '23 15:10 licanhua