public final class GeneralUIUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
allReadyExistErro |
static String |
FILE_NAME |
static String |
FILE_PATH |
static String |
fileName |
static String |
toscaErrorMessage |
static String |
yamlError |
Constructor and Description |
---|
GeneralUIUtils() |
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.WebElement |
actionBuild(org.openqa.selenium.WebElement element) |
static List<String> |
catalogFilterStatusChecBox(CheckBoxStatusEnum statusEnum) |
static String |
catalogFilterTypeChecBox(TypesEnum enumtype) |
static org.openqa.selenium.WebElement |
catalogSearchBox(String searchText) |
static String |
checkBoxLifeCyclestate(CheckBoxStatusEnum lifeCycle) |
static void |
checkIn() |
static void |
checkinCheckout(String elementName) |
static void |
checkOut() |
static void |
clickAccept() |
static void |
clickApprove() |
static void |
clickASDCLogo() |
static void |
clickBreadCrumbs(BreadCrumbsButtonsEnum button) |
static void |
clickCancel() |
static boolean |
clickcheckbox(String category) |
static void |
clickCreateButton() |
static void |
clickDistribute() |
static void |
clickExitSign() |
static void |
clickOkButton() |
static void |
clickOnHTMLElementByDataTestId(String dataTestId) |
static void |
clickOnHTMLElementBylinkText(String linkText) |
static void |
clickPrintScreen() |
static void |
clickReDistribute() |
static void |
clickReject() |
static void |
clickSaveIcon() |
static void |
clickStartTesting() |
static void |
clickSubmitForTest() |
static void |
clickUpdateButton() |
static void |
closeFileWriter(FileWriter file) |
static org.openqa.selenium.WebElement |
createAndImportButtons(CreateAndImportButtonsEnum type,
org.openqa.selenium.WebDriver driver) |
static String |
defineDescription(String descriptionText) |
static void |
defineTagsList(ResourceReqDetails resource,
String[] resourceTags) |
static void |
deleteFile(String name) |
static org.openqa.selenium.WebElement |
deleteVersion() |
static void |
deleteVersionInUI() |
static void |
downloadFile(String name) |
static void |
editFile(String name) |
static void |
errorMessagePopupHandle(Supplier func) |
static void |
findComponentAndClick(ResourceReqDetails resource) |
static void |
findComponentAndClick(String componentName) |
static org.openqa.selenium.WebElement |
getButtonByClassName(String element) |
static String |
getComponentVersion(String componentName) |
static org.openqa.selenium.WebDriver |
getDriver() |
static org.openqa.selenium.WebElement |
getEelementByClassName(String element) |
static org.openqa.selenium.WebElement |
getEelementBycontainsClassName(String classname) |
static org.openqa.selenium.WebElement |
getEelementByContainsdatatestsid(String datatestId) |
static org.openqa.selenium.WebElement |
getEelementByLinkText(String linkText) |
static List<org.openqa.selenium.WebElement> |
getEelementsByClassName(String element) |
static List<org.openqa.selenium.WebElement> |
getEelementsBycontainsClassName(String classname) |
static List<org.openqa.selenium.WebElement> |
getEelementsByContainsDataTestsId(String datatestId) |
static List<org.openqa.selenium.WebElement> |
getElemenetsFromTable(org.openqa.selenium.By by) |
static String |
getMethodName(Method method) |
static org.openqa.selenium.support.ui.Select |
getSelectList(String item,
String datatestsid) |
static org.openqa.selenium.WebElement |
getWebButton(String dataTestId) |
static org.openqa.selenium.WebElement |
getWebElement(org.openqa.selenium.WebDriver driver,
String dataTestId) |
static org.openqa.selenium.WebElement |
getWebElementByDataTestId(String dataTestId) |
static org.openqa.selenium.WebElement |
getWebElementById(String id) |
static org.openqa.selenium.WebElement |
getWebElementByName(String name) |
static List<org.openqa.selenium.WebElement> |
getWebElements(String dataTestId) |
static List<org.openqa.selenium.WebElement> |
getWebElementsListByDataTestId(String dataTestId) |
static org.openqa.selenium.WebElement |
getWebElementWaitForVisible(String dataTestId) |
static List<org.openqa.selenium.WebElement> |
getWorkspaceElements() |
static void |
governorUser(Boolean reject,
Boolean approve,
ResourceReqDetails resource) |
static void |
hasDriver() |
static org.openqa.selenium.WebElement |
hoverOnArea(String areaId) |
static org.openqa.selenium.WebElement |
hoverOnArea(String areaId,
org.openqa.selenium.WebDriver driver) |
static void |
initDriver() |
static FileWriter |
InitializeprintToTxt(String testName) |
static boolean |
isElementPresent(String dataTestId) |
static void |
minimizeCatalogFilterByTitle(CatalogFilterTitlesEnum titlesEnum) |
static org.openqa.selenium.WebElement |
moveToNextStep(DataTestIdEnum.StepsEnum Stepname) |
static void |
moveToStep(DataTestIdEnum.StepsEnum Stepname) |
static void |
moveToStep(String dataTestId) |
static void |
openObjectMenuAndSelectOption(String uniqid,
MenuOptionsEnum optionName) |
static void |
opsUser(Boolean disribute,
Boolean reDisribute,
ResourceReqDetails resource) |
static <R> R |
retryMethodOnException(Supplier<R> supplier) |
static org.openqa.selenium.WebElement |
rihtPanelAPI() |
static void |
scrollDown() |
static void |
selectMenuOptionbyname(List<org.openqa.selenium.WebElement> options,
MenuOptionsEnum optionName) |
static void |
selectTabInRightPallete(String className) |
static String |
setFileTypeAndGetUniqId(ResourceTypeEnum fileType,
ResourceReqDetails resourceDetails,
User user) |
static void |
sleep(int duration) |
static File |
takeScreenshot(String zipFile,
String dir,
String testName) |
static void |
testerUser(Boolean startTest,
Boolean accept,
ResourceReqDetails resource) |
static void |
ultimateWait() |
static void |
uploadFileWithJavaRobot(String FilePath,
String FileName) |
static void |
waitForAngular() |
static org.openqa.selenium.WebElement |
waitForBrowseButton(String dataTestId) |
static org.openqa.selenium.WebElement |
waitForClassNameVisibility(String className) |
static List<org.openqa.selenium.WebElement> |
waitForContainsdataTestIdVisibility(String dataTestId) |
static org.openqa.selenium.WebElement |
waitForContainsdataTestIdVisibility2(String dataTestId) |
static org.openqa.selenium.WebElement |
waitFordataTestIdVisibility(String dataTestId) |
static Boolean |
waitForElementInVisibilityByClassName(org.openqa.selenium.WebDriver driver,
String className) |
static List<org.openqa.selenium.WebElement> |
waitForElements(org.openqa.selenium.By by,
int napPeriod,
int maxWaitMS) |
static boolean |
waitForElementsListInvisibility(org.openqa.selenium.By by) |
static List<org.openqa.selenium.WebElement> |
waitForElementsListVisibility(org.openqa.selenium.By by) |
static List<org.openqa.selenium.WebElement> |
waitForElementsListVisibility(String dataTestId) |
static List<org.openqa.selenium.WebElement> |
waitForElementsListVisibilityTestMethod(String dataTestId) |
static org.openqa.selenium.WebElement |
waitForElementVisibility(org.openqa.selenium.By by) |
static org.openqa.selenium.WebElement |
waitForElementVisibility(org.openqa.selenium.By by,
int duration) |
static org.openqa.selenium.WebElement |
waitForElementVisibility(String dataTestId) |
static Boolean |
waitForInvisibileElement(String dataTestId) |
static void |
waitForLoader() |
static void |
waitForLoaderOnboarding() |
static org.openqa.selenium.WebElement |
waitUntilClickableButton(String dataTestId) |
static void |
windowZoomOut() |
public static final String FILE_NAME
public static final String FILE_PATH
public static String fileName
public static final String toscaErrorMessage
public static final String yamlError
public static final String allReadyExistErro
public static void findComponentAndClick(String componentName) throws Exception
Exception
public static List<org.openqa.selenium.WebElement> getElemenetsFromTable(org.openqa.selenium.By by)
public static org.openqa.selenium.WebElement hoverOnArea(String areaId)
public static org.openqa.selenium.WebElement actionBuild(org.openqa.selenium.WebElement element) throws InterruptedException
InterruptedException
public static File takeScreenshot(String zipFile, String dir, String testName) throws IOException
IOException
public static void errorMessagePopupHandle(Supplier func) throws Exception
Exception
public static void waitForLoader()
public static void waitForLoaderOnboarding()
public static List<org.openqa.selenium.WebElement> waitForElements(org.openqa.selenium.By by, int napPeriod, int maxWaitMS)
public static org.openqa.selenium.WebDriver getDriver()
public static org.openqa.selenium.WebElement rihtPanelAPI()
public static void scrollDown() throws AWTException
AWTException
public static List<org.openqa.selenium.WebElement> getWorkspaceElements() throws InterruptedException
InterruptedException
public static FileWriter InitializeprintToTxt(String testName)
public static void closeFileWriter(FileWriter file) throws IOException
IOException
public static org.openqa.selenium.WebElement createAndImportButtons(CreateAndImportButtonsEnum type, org.openqa.selenium.WebDriver driver) throws InterruptedException
InterruptedException
public static String checkBoxLifeCyclestate(CheckBoxStatusEnum lifeCycle)
public static String setFileTypeAndGetUniqId(ResourceTypeEnum fileType, ResourceReqDetails resourceDetails, User user) throws IOException, Exception
IOException
Exception
public static void minimizeCatalogFilterByTitle(CatalogFilterTitlesEnum titlesEnum)
public static org.openqa.selenium.WebElement getWebElementWaitForVisible(String dataTestId)
public static org.openqa.selenium.WebElement getWebElementById(String id)
public static org.openqa.selenium.WebElement getWebElementByName(String name)
public static org.openqa.selenium.WebElement getWebButton(String dataTestId)
public static org.openqa.selenium.WebElement waitFordataTestIdVisibility(String dataTestId)
public static boolean clickcheckbox(String category)
public static org.openqa.selenium.WebElement waitForContainsdataTestIdVisibility2(String dataTestId)
public static List<org.openqa.selenium.WebElement> waitForContainsdataTestIdVisibility(String dataTestId)
public static org.openqa.selenium.WebElement waitForClassNameVisibility(String className)
public static org.openqa.selenium.WebElement waitForElementVisibility(org.openqa.selenium.By by)
public static org.openqa.selenium.WebElement waitForElementVisibility(org.openqa.selenium.By by, int duration)
public static List<org.openqa.selenium.WebElement> waitForElementsListVisibility(org.openqa.selenium.By by)
public static boolean waitForElementsListInvisibility(org.openqa.selenium.By by)
public static List<org.openqa.selenium.WebElement> waitForElementsListVisibility(String dataTestId)
public static List<org.openqa.selenium.WebElement> waitForElementsListVisibilityTestMethod(String dataTestId)
public static org.openqa.selenium.WebElement waitForBrowseButton(String dataTestId)
public static List<org.openqa.selenium.WebElement> getWebElementsListByDataTestId(String dataTestId)
public static org.openqa.selenium.WebElement getWebElementByDataTestId(String dataTestId)
public static org.openqa.selenium.WebElement waitUntilClickableButton(String dataTestId)
public static boolean isElementPresent(String dataTestId)
public static <R> R retryMethodOnException(Supplier<R> supplier)
public static void testerUser(Boolean startTest, Boolean accept, ResourceReqDetails resource) throws Exception
Exception
public static void governorUser(Boolean reject, Boolean approve, ResourceReqDetails resource) throws Exception
Exception
public static void opsUser(Boolean disribute, Boolean reDisribute, ResourceReqDetails resource) throws Exception
Exception
public static org.openqa.selenium.support.ui.Select getSelectList(String item, String datatestsid)
public static org.openqa.selenium.WebElement catalogSearchBox(String searchText)
public static void selectMenuOptionbyname(List<org.openqa.selenium.WebElement> options, MenuOptionsEnum optionName) throws InterruptedException
InterruptedException
public static void clickASDCLogo()
public static void clickExitSign() throws InterruptedException
InterruptedException
public static void checkOut() throws InterruptedException, AWTException
InterruptedException
AWTException
public static void clickStartTesting() throws InterruptedException
InterruptedException
public static void clickAccept() throws InterruptedException
InterruptedException
public static void clickReject() throws InterruptedException
InterruptedException
public static void clickApprove() throws InterruptedException
InterruptedException
public static void clickDistribute() throws InterruptedException
InterruptedException
public static void clickReDistribute() throws InterruptedException
InterruptedException
public static void clickCancel()
public static void checkIn() throws InterruptedException
InterruptedException
public static void clickSaveIcon() throws InterruptedException
InterruptedException
public static void openObjectMenuAndSelectOption(String uniqid, MenuOptionsEnum optionName) throws InterruptedException, AWTException
InterruptedException
AWTException
public static org.openqa.selenium.WebElement getEelementByClassName(String element)
public static List<org.openqa.selenium.WebElement> getEelementsByClassName(String element)
public static org.openqa.selenium.WebElement getEelementByContainsdatatestsid(String datatestId)
public static List<org.openqa.selenium.WebElement> getEelementsByContainsDataTestsId(String datatestId)
public static org.openqa.selenium.WebElement getEelementBycontainsClassName(String classname)
public static org.openqa.selenium.WebElement getEelementByLinkText(String linkText)
public static List<org.openqa.selenium.WebElement> getEelementsBycontainsClassName(String classname)
public static org.openqa.selenium.WebElement getButtonByClassName(String element)
public static void checkinCheckout(String elementName) throws Exception, Exception
Exception
public static void moveToStep(DataTestIdEnum.StepsEnum Stepname)
public static void moveToStep(String dataTestId)
public static void editFile(String name)
public static void deleteFile(String name)
public static void downloadFile(String name)
public static void sleep(int duration)
public static void hasDriver()
public static void initDriver()
public static void windowZoomOut()
public static void defineTagsList(ResourceReqDetails resource, String[] resourceTags)
public static void selectTabInRightPallete(String className) throws Exception
Exception
public static org.openqa.selenium.WebElement getWebElement(org.openqa.selenium.WebDriver driver, String dataTestId)
public static void clickOkButton() throws InterruptedException
InterruptedException
public static org.openqa.selenium.WebElement waitForElementVisibility(String dataTestId)
public static org.openqa.selenium.WebElement deleteVersion()
public static void uploadFileWithJavaRobot(String FilePath, String FileName) throws Exception
Exception
public static String catalogFilterTypeChecBox(TypesEnum enumtype) throws Exception
Exception
public static List<String> catalogFilterStatusChecBox(CheckBoxStatusEnum statusEnum) throws Exception
Exception
public static void clickBreadCrumbs(BreadCrumbsButtonsEnum button)
public static void clickPrintScreen()
public static void clickSubmitForTest() throws InterruptedException
InterruptedException
public static org.openqa.selenium.WebElement hoverOnArea(String areaId, org.openqa.selenium.WebDriver driver)
public static org.openqa.selenium.WebElement moveToNextStep(DataTestIdEnum.StepsEnum Stepname)
public static void clickOnHTMLElementByDataTestId(String dataTestId) throws Exception
Exception
public static Boolean waitForElementInVisibilityByClassName(org.openqa.selenium.WebDriver driver, String className)
public static void findComponentAndClick(ResourceReqDetails resource) throws Exception
Exception
public static void clickOnHTMLElementBylinkText(String linkText) throws Exception
Exception
public static void ultimateWait()
public static void waitForAngular()
Copyright © 2017. All rights reserved.