Python(80)_使用selenium实现第一个web自动化程序
Posted sunnybowen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python(80)_使用selenium实现第一个web自动化程序相关的知识,希望对你有一定的参考价值。
百度搜索
#-*-coding:utf-8-*- from selenium import webdriver f = webdriver.Chrome("D:\\Documents\\Downloads\\chromedriver.exe") f.get("http://www.baidu.com") f.find_element_by_id(‘kw‘).send_keys(‘selenium‘) f.find_element_by_id(‘su‘).click()
以上是关于Python(80)_使用selenium实现第一个web自动化程序的主要内容,如果未能解决你的问题,请参考以下文章