测试环境搭建
python3 + selenium + chrome
selenium安装:
pip install selenium
chrome driver下载对应版本,放置在python安装目录下:
http://chromedriver.storage.googleapis.com/index.html
# coding=utf8
from selenium import webdriver
br = webdriver.Chrome()
br.get('http://www.baidu.com')
br.find_element_by_id("kw").send_keys("selenium")
br.find_element_by_id("su").click()
标签:www,Python,selenium,br,测试工具,id
From: https://www.cnblogs.com/rustling/p/18109632