MA
Size: a a a
MA
AV
AV
AS
R(
@Test
public void generated() {
WebElement button = null;
String btnId = "gf_button_get_form_609888";
WebElement getId = button.findElement(By.id("gf_button_get_form_609888"));
WebElement assertion = Assert.assertTrue(getId.isDisplayed());
for (int i = 0; i < 100; i++) {
// находим кнопку
button = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(btnId)));
if ((button == null) || (/*button.getAttribute("id").equals(btnId)*/ assertion == false)) { //если актуальное не равно ожидаемому, то
driver.navigate().refresh(); // обновить страницу
} else {
break; // кнопка норм, выходим нахой с цикла
}
}
}
V
@Test
public void generated() {
WebElement button = null;
String btnId = "gf_button_get_form_609888";
WebElement getId = button.findElement(By.id("gf_button_get_form_609888"));
WebElement assertion = Assert.assertTrue(getId.isDisplayed());
for (int i = 0; i < 100; i++) {
// находим кнопку
button = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(btnId)));
if ((button == null) || (/*button.getAttribute("id").equals(btnId)*/ assertion == false)) { //если актуальное не равно ожидаемому, то
driver.navigate().refresh(); // обновить страницу
} else {
break; // кнопка норм, выходим нахой с цикла
}
}
}
A
ee
EV
A
VM
AG
gg
KM
executeJavaScript("window.open()");
GR
AG
ES
@Test
public void generated() {
WebElement button = null;
String btnId = "gf_button_get_form_609888";
WebElement getId = button.findElement(By.id("gf_button_get_form_609888"));
WebElement assertion = Assert.assertTrue(getId.isDisplayed());
for (int i = 0; i < 100; i++) {
// находим кнопку
button = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(btnId)));
if ((button == null) || (/*button.getAttribute("id").equals(btnId)*/ assertion == false)) { //если актуальное не равно ожидаемому, то
driver.navigate().refresh(); // обновить страницу
} else {
break; // кнопка норм, выходим нахой с цикла
}
}
}
AB
KL
VM
@Test
public void generated() {
WebElement button = null;
String btnId = "gf_button_get_form_609888";
for (int i = 0; i < 100; i++) {
// находим кнопку
button = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(btnId)));
if (button == null) { //если актуальное не равно ожидаемому, то
driver.navigate().refresh(); // обновить страницу
} else {
break; // кнопка норм, выходим нахой с цикла
}
}
}