def auto_move_child(move=None, child=None): # 这些参数是用于存储切割之后的路径 if move.find(_id) == -1: if move.find(_name) == -1: if move.find(_text) == -1: if move.find(_xpath) == -1: if move.find(_css) == -1: print("悬停寻找父类关键字怎么出问题了,move=%s" % \ move) else: move_route = css_character_cutting(move) selenium_move.css_move(move_route) auto_child_number(child) else: move_route = xpath_character_cutting(move) selenium_move.xpath_move(move_route) auto_child_number(child) else: move_route = text_character_cutting(move) selenium_move.text_move(move_route) auto_child_number(child) else: move_route = name_character_cutting(move) selenium_move.name_move(move_route) auto_child_number(child) else: move_route = id_character_cutting(move) selenium_move.id_move(move_route) auto_child_number(child)
def id_move_css_child(move=None, child=None): selenium_move.id_move(move) selenium_click.css_click(child)
def id_move_xpath_child(move=None, child=None): selenium_move.id_move(move) selenium_click.xpath_click(child)
def id_move_text_child(move=None, child=None): selenium_move.id_move(move) selenium_click.text_click(child)