jeudi 20 juillet 2017

Radio button is not clickable in selenium web driver with loop

List CheckBox = driver.findElements(clickRadioButton);

int Size = CheckBox.size();

for(int i=0; i < Size ; i++ ){

String Value = CheckBox.get(i).getAttribute("value");

if (Value.equalsIgnoreCase("3564")){

CheckBox.get(i).click();

break;

}

}

driver.findElement(clickContinueLoggedin).click();

Locators:

clickRadioButton = By clickRadioButton = By.xpath("//input[@class='select-address']");

clickContinueLoggedin = By clickContinueLoggedin = By.xpath("//button[@id='save-add-ship']");

Aucun commentaire:

Enregistrer un commentaire