1 package vid.automation.test.sections;
3 import org.junit.Assert;
4 import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils;
5 import org.openqa.selenium.WebElement;
6 import vid.automation.test.Constants;
8 import static org.hamcrest.MatcherAssert.assertThat;
9 import static org.hamcrest.Matchers.containsString;
11 public class DeployMacroDialogOld extends DeployMacroDialogBase {
12 String dialogTitle = "macro";
15 public void assertTitle(){
16 WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, 30);
17 assertThat(modalTitle.getText().toLowerCase(), containsString(dialogTitle));
21 public void closeDialog(){
22 GeneralUIUtils.ultimateWait();
23 clickCancelButtonByTestID();
27 public void assertDialogExists(){
28 boolean byText = GeneralUIUtils.findAndWaitByText(Constants.BrowseASDC.CREATE_SERVICE_INSTANCE, 15);
29 Assert.assertTrue(byText);
33 public void clickOwningEntitySelect(){
34 GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID);
38 public void clickProjectSelect(){
39 GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);