Package testzeus.base
Class SFPageBase
java.lang.Object
testzeus.base.PageBase
testzeus.base.SFPageBase
-
Field Summary
FieldsFields inherited from class testzeus.base.PageBase
default_locale, driver, prefs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappLauncher(String appname) static voidorg.openqa.selenium.WebElementfindElementByXpath(String xPath, String expectedSalesForceType) Locates an element, doing some creative error handling where it can help find the elementvoidformValueFiller(String label, String targetvalue) voidglobalSearch(String searchterm) static voidstatic voidstatic voiduiApiHitter(String recordID) voiduiApiParser(String recordid) static voidverifyRequiredFields(String testdatajson, String objname) voidMethods inherited from class testzeus.base.PageBase
acceptAlert, browserback, captureText, chainedElementLocator, clickControlHome, clickEscapeKey, clickOnElementUsingJavaScript, closeCurrentBrowser, compareDateValue, disablegpu, enterValue, enterValueTextArea, enterValueUsingScript, explicitWait, explicitWait, explicitWaitClickable, explicitWaitInMinutes, forceClickElement, getAllOptions, getAttrValueForElement, getConsoleLogEntriesChromeBrowser, getCurrentDate, getCurrentDateESTmddyyyy, getCurrentDateESTmdyyyy, getCurrentDateInMDDYYYY, getCurrentDateInMMDDYY, getCurrentDateInMMDDYYYY, getCurrentDateInYYYYMMDD, getCurrentDateTimeStamp, getCurrentDateWithCustomFormat, getCurrentTimeEST, getCurrentTimeStamp, getCurrentURL, getCurrentWindowHandle, gethmmTimeFromString, getInnerText, getNumericValueFromString, getTextOfElement, getTimeDiffMinutes, getTomorrowateInYYYYMMDD, getTomorrowDateInMDYYYY, getTomorrowDateInMDYYYYEST, getWebDriver, getWindowsCount, handleIEError, hardwait, imageCompare, implicitWait, isAlertOpen, isElementDisplayed, isElementDisplayedWithTimeOut, isElementNotDisplayed, javascriptExecutor, javascriptScrollToElement, maximize, mouseOverElement, openHomepage, openHomepageWithElement, OSDetector, pageLoadWait, readJsonFile, refreshPage, replaceValue, safeClick, scroll_Page, scrollByCoordinate, scrollPage, scrollToBottom, scrollToElement, scrollToElementAsync, scrollToElementHorizontally, scrollToElementInView, scrollToHeader, scrollVerticallyInsideDiv, selectRadio, selectValue, selectValueByIndex, selectValueByVisibleText, SFClick, sleep, switchToNewWindow, takeScreenshot, uploadFile, uploadFileToWebElement, verifyElementEnabled, verifyWebElement, waitAndClick, waitAndforceClickElement, waitForJSandJQueryToLoad, webElementToByValue
-
Field Details
-
uiapi_record_json
-
labelandtype
-
-
Constructor Details
-
SFPageBase
public SFPageBase(org.openqa.selenium.WebDriver driver)
-
-
Method Details
-
waitForSFPagetoLoad
- Throws:
InterruptedException
-
uiApiHitter
-
sectionGetter
- Throws:
Exception
-
labelGetter
- Throws:
Exception
-
dataTypeGetter
- Throws:
Exception
-
uiApiParser
- Throws:
Exception
-
formValueFiller
- Throws:
Exception
-
verifyRequiredFields
-
globalSearch
-
getURL
-
appLauncher
- Throws:
InterruptedException
-
findElementByXpath
public org.openqa.selenium.WebElement findElementByXpath(String xPath, String expectedSalesForceType) Locates an element, doing some creative error handling where it can help find the element
- Parameters:
xPath- - valid Xpath locator stringexpectedSalesForceType- - Identified field type. String, Url, Int, Phone, Currency, Double, Date, Boolean, TextArea, Picklist, Reference.- Returns:
- the found WebElement
-