def getButtonShowButton(): try: return Launch_Class.driver.find_element_by_xpath( lib.DataJSON("Locators", "ShowButton")) except Exception: print("Element not found") return None
def Verify_ShowButton(): try: Launch_Class.driver.find_element_by_xpath(lib.DataJSON( "Locators", "0")) return 'True' except Exception: return 'False'
def Verify_ShowTitle(): try: if(Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators","Title"))).is_displayed(): return 'True' else: return 'False' except Exception: print(Exception) return 'False'
def getDisplayShowTitleAgain(): try: return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Show_Title")) except Exception: return None
def getDisplayOptions(): try: return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Display_Option")) except Exception: print("Element not found") return None
def getActionBar(): try: return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Action_Bar")) except Exception: print("Element not found") return None