From 1cfb08779ea0e00be69e072a940b3063e049fe6b Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Wed, 31 Jan 2018 17:19:00 +0200 Subject: org.onap migration Change-Id: I52f0b2851f2c765752b6d21f49b32136d7d72a3d Issue-ID: VID-86 Signed-off-by: Ofir Sonsino --- .../test/sections/TestEnvironmentPage.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java (limited to 'vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java') diff --git a/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java b/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java new file mode 100644 index 00000000..f6390632 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java @@ -0,0 +1,39 @@ +package vid.automation.test.sections; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import org.testng.Assert; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.infra.Get; + +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class TestEnvironmentPage extends VidBasePage { + + public static void clickTestEnvironmentActivate(String envId) { + getTestEnvironmentActivationButton(envId).click(); + } + + public static void clickTestEnvironmentDeactivate(String envId) { + getTestEnvironmentDeactivationButton(envId).click(); + } + + public static WebElement getTestEnvironmentActivationButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.activateButtonIdPrefix + envId); + return webElement; + } + + public static WebElement getTestEnvironmentDeactivationButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.deactivateButtonIdPrefix + envId); + return webElement; + } + + public static WebElement getTestEnvironmentAttachButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.attachButtonIdPrefix + envId); + return webElement; + } +} -- cgit 1.2.3-korg