IsClickableElementAsync
Description: the method determines the clickability of the element and returns true or false
Syntax:
IsClickableElementAsync(string by, string locator)
IsClickableElementAsync(Locator 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();
bool clickable = await tester.IsClickableElementAsync(tester.GetLocator("locatorName"));
await tester.AssertTrueAsync(clickable);
Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator