PopupLayerInspector confirmedPopup = popupLayer("formID:confirmed_a4j_Popup");
for (int i = 0; i < 3; i++) {
selenium.click("formID:a4j_button");
String oldSource = selenium.getHtmlSource();
confirmation.okButton().click();
confirmedPopup.assertVisible(true);
selenium.click("formID:closer_a4j");
selenium.click("formID:refresher_a4j");
RichFacesAjaxLoadingMode.getInstance().waitForLoad();
selenium.click("formID:button1");
String newSource = selenium.getHtmlSource();