def auto_child_number(child): child_result = None if child.find(_id) == -1: if child.find(_name) == -1: if child.find(_text) == -1: if child.find(_xpath) == -1: if child.find(_css) == -1: print("悬停寻找子类关键字怎么出问题了,child=%s" % \ child) else: child_result = css_character_cutting(child) selenium_click.css_click(child_result) else: child_result = xpath_character_cutting(child) selenium_click.xpath_click(child_result) else: child_result = text_character_cutting(child) selenium_click.text_click(child_result) else: child_result = name_character_cutting(child) selenium_click.name_click(child_result) else: child_result = id_character_cutting(child) selenium_click.id_click(child_result)
def text_move_id_click(move=None, child=None): selenium_move.text_move(move) selenium_click.id_click(child)
def name_move_id_child(move=None, child=None): selenium_move.name_move(move) selenium_click.id_click(child)
def css_move_id_click(move=None, child=None): selenium_move.css_move(move) selenium_click.id_click(child)
def xpath_move_id_click(move=None, child=None): selenium_move.xpath_move(move) selenium_click.id_click(child)