FindVisibleElementAsync

Parent Previous Next

FindVisibleElementAsync

Description: the method searches for a visually displayed element with a wait in seconds and returns a logical result true or false

Syntax

FindVisibleElementAsync(string by, string locator, int sec)

FindVisibleElementAsync(Locator locator, int sec)

Return value: bool (true or false)


Example:

bool result = await tester.FindVisibleElementAsync(Tester.BY_CSS, "#auth #buttonLogin", 2);

bool result = await tester.FindVisibleElementAsync(Tester.BY_XPATH, "//div[@id='auth']//input[@id='buttonLogin']", 2);


bool result = await tester.FindVisibleElementAsync(tester.GetLocator("locatorName"), 2);

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor