selenium模拟鼠标拖动

# 模拟鼠标滑动,拖动到可见的元素去
element = self.driver.find_element(*select_value) # select_value = (By.XPATH,'//label[@for="p_relate_apply_id"]')
self.driver.execute_script("arguments[0].scrollIntoView();", element )
posted @ 2020-07-20 16:24  Wiselee😏  阅读(440)  评论(1编辑  收藏  举报