Python Selenium 水平竖直移动鼠标的方法

    b_label_location = driver.find_element_by_xpath(XPATH_MAP_DICT['xpath_meeting_time_i_b'])
    mouse_action = ActionChains(driver)
    mouse_action.move_to_element_with_offset(b_label_location, 15, 40).click().perform()
    mouse_action.click().perform()
    time.sleep(2)

猜你喜欢

转载自blog.csdn.net/heatdeath/article/details/80548298