YM
1) Тест нажимает на кнопку
2) Появляется лоадер
3) Лоадер пропадает
4) Тест берет значение элемента.
Код примерно такой:
$("div.main").click
$("div.spinner-container").shouldBe(not(visible));
String elText = $("div.data").getText();
Периодически возникает проблема:
Element should be not visible {div.spinner-container}
Element: 'Ups, failed to described the element [caused by: StaleElementReferenceException: stale element reference: element is not attached to the page document]'
Actual value: StaleElementReferenceException: stale element refe