记一次selenium行为链必应搜索失败的解决办法
actions.send_keys_to_element(input_tag,'python') #并输入要搜索的关键字。input_tag=driver.find_element_by_id('sb_form_q')#获取文本框。button=driver.find_element_by_id('search_icon') #搜索按钮。actions.move_to_element(input_tag) #移动到文本框。actions.move_to_element(button) #移动到搜索按钮。
原创
2023-12-05 15:36:40 ·
70 阅读 ·
1 评论