Package testzeus.base

Class SFPageBase

java.lang.Object
testzeus.base.PageBase
testzeus.base.SFPageBase

public class SFPageBase extends PageBase
  • Field Details

    • uiapi_record_json

      protected static String uiapi_record_json
    • labelandtype

      protected static HashMap<String,String> labelandtype
  • Constructor Details

    • SFPageBase

      public SFPageBase(org.openqa.selenium.WebDriver driver)
  • Method Details

    • waitForSFPagetoLoad

      public void waitForSFPagetoLoad() throws InterruptedException
      Throws:
      InterruptedException
    • uiApiHitter

      public static void uiApiHitter(String recordID)
    • sectionGetter

      public static void sectionGetter() throws Exception
      Throws:
      Exception
    • labelGetter

      public static void labelGetter() throws Exception
      Throws:
      Exception
    • dataTypeGetter

      public static void dataTypeGetter() throws Exception
      Throws:
      Exception
    • uiApiParser

      public void uiApiParser(String recordid) throws Exception
      Throws:
      Exception
    • formValueFiller

      public void formValueFiller(String label, String targetvalue) throws Exception
      Throws:
      Exception
    • verifyRequiredFields

      public static void verifyRequiredFields(String testdatajson, String objname)
    • globalSearch

      public void globalSearch(String searchterm)
    • getURL

      public String getURL(String appname)
    • appLauncher

      public void appLauncher(String appname) throws InterruptedException
      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 string
      expectedSalesForceType - - Identified field type. String, Url, Int, Phone, Currency, Double, Date, Boolean, TextArea, Picklist, Reference.
      Returns:
      the found WebElement