1 package vid.automation.test.sections.deploy;
3 import static org.hamcrest.MatcherAssert.assertThat;
4 import static org.hamcrest.Matchers.containsString;
6 import org.junit.Assert;
7 import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
8 import org.openqa.selenium.WebElement;
9 import vid.automation.test.Constants;
11 public abstract class DeployOldDialogBase extends DeployDialogBase {
14 public void waitForDialogToLoad() {
15 GeneralUIUtils.ultimateWait();
19 public void closeDialog(){
20 clickCancelButtonByTestID();
24 public void assertDialog(){
26 boolean byText = GeneralUIUtils.findAndWaitByText(Constants.BrowseASDC.CREATE_SERVICE_INSTANCE, 15);
27 Assert.assertTrue(byText);
30 public void assertTitle(){
31 WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, 30);
32 assertThat(modalTitle.getText().toLowerCase(), containsString(getTitle()));
35 public abstract String getTitle();