IsClickableElementAsync

Parent Previous Next

IsClickableElementAsync

Описание: метод определяет кликабельность элемента и возвращает true или false

Синтаксис

IsClickableElementAsync(string by, string locator)

IsClickableElementAsync(Locator locator)

Возвращаемое значение: логическое (true или false)


Пример:

Tester tester = new Tester(browserForm);

await tester.TestBeginAsync();

await tester.GoToUrlAsync("https://somovstudio.github.io/test.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: Easy to use tool to create HTML Help files and Help web sites