IsClickableElementAsync

Parent Previous Next

IsClickableElementAsync

Description: the method determines the clickability of the element and returns true or false

Syntax: IsClickableElementAsync(string by, string locator)

Return value: bool (true or false)


Пример:

Tester tester = new Tester(browserForm);

await tester.TestBeginAsync();

await tester.GoToUrlAsync("https://somovstudio.github.io/test_eng.html", 5);

bool clickable = await tester.IsClickableElementAsync(Tester.BY_XPATH, "//*[@id='buttonLogin']");

await tester.AssertTrueAsync(clickable);

await tester.TestEndAsync();

Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator