コード例 #1
0
def getButtonShowButton():
    try:
        return Launch_Class.driver.find_element_by_xpath(
            lib.DataJSON("Locators", "ShowButton"))
    except Exception:
        print("Element not found")
        return None
コード例 #2
0
def Verify_ShowButton():
    try:
        Launch_Class.driver.find_element_by_xpath(lib.DataJSON(
            "Locators", "0"))
        return 'True'
    except Exception:
        return 'False'
コード例 #3
0
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'
コード例 #4
0
def getDisplayShowTitleAgain():
    try:
     return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Show_Title"))
    except Exception:
     return None
コード例 #5
0
def getDisplayOptions():
    try:
     return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Display_Option"))
    except Exception:
        print("Element not found")
        return None
コード例 #6
0
def getActionBar():
    try:
     return Launch_Class.driver.find_element_by_xpath(lib.DataJSON("Locators", "Action_Bar"))
    except Exception:
        print("Element not found")
        return None