1 package vid.automation.test.sections;
3 import org.junit.Assert;
4 import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
5 import org.openqa.selenium.WebElement;
6 import vid.automation.test.Constants;
7 import vid.automation.test.infra.Get;
12 * Created by itzikliderman on 13/06/2017.
14 public class BrowseASDCPage extends VidBasePage {
16 public String generateInstanceName() {
17 return generateInstanceName(Constants.BrowseASDC.SERVICE_INSTANCE_NAME_PREFIX);
20 public VidBasePage clickPreviousVersionButton() {
21 GeneralUIUtils.clickOnElementByText(Constants.PREVIOUS_VERSION, 30);
25 public void assertPreviousVersionButtonNotExists(String expectedInvariantUUID){
26 boolean exists = Get.byTestId("PreviousVersion-" + expectedInvariantUUID).isDisplayed();
27 Assert.assertFalse(exists);
30 public void assertSearchFilterValue(String value){
31 String searchKey = this.getInputValue(Constants.BROWSE_SEARCH);
32 org.testng.Assert.assertEquals(searchKey, value);
35 public void fillFilterText(String text){
36 this.setInputText(Constants.BROWSE_SEARCH, text);
39 public int countCurrentRowsInTable(){
40 List<WebElement> rowsInTable = Get.byClass("sdcServiceModel");
41 return rowsInTable.size();