IsClickableAsync

Parent Previous Next

IsClickableAsync

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

Синтаксис: IsClickableAsync()

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


Пример:

Tester tester = new Tester(browserForm);

await tester.TestBeginAsync();

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

HTMLElement element = await tester.GetElementAsync(Tester.BY_XPATH, "//button");

bool clickable = await element.IsClickableAsync();

await tester.AssertTrueAsync(clickable);

await tester.TestEndAsync();

Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation