Beispiel #1
0
def click(locate_method, locate_expression):
    global driver
    try:
        element = WaitUtil(driver).visibleOfElement(locate_method,
                                                    locate_expression)
        element.click()
    except:
        print("点击按钮出错")
Beispiel #2
0
def click(locate_method, locate_expression):
    global driver
    try:
        element = WaitUtil(driver).visibleOfElement(locate_method,
                                                    locate_expression)
        element.click()
    except:
        print("输入内容出现了异常")
        info("webelement:%s->%s  operate fail" %
             (locate_method, locate_expression))