- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 python+selenium自动化(三)
from selenium.webdriver.common.action_chains import ActionChains#鼠标悬停在搜索设置按钮上mouse=driver.find_element_by_link_text("设置")ActionChains(driver).move_to_element(mouse).perform()右击鼠标 context_clic...
2018-11-18 22:17:52 252
原创 python+selenium自动化(二)
#coding:utf-8from selenium import webdriverdriver=webdriver.Firefox()#driver=webdriver.Ie()#driver=webdriver.Chrome()driver.get("https://www.baidu.com")time.sleep(3)driver.get("http://ww...
2018-11-14 23:06:34 140
原创 python+selenium自动化(一)
虽然网上已经有很多很多写python+selenium自动化的,但我还是想写个记录自己的每一步。1.python安装:windows系统windows系统下载exe,按安装提示,下一步等安装完成即可官网下载地址:https://www.python.org2.环境变量:将D:\python和D:\python\Scripts,添加到环境变量path下3.安装seleni...
2018-11-14 00:47:41 151
转载 命令行运行Python脚本时传入参数的三种方式
转自:https://blog.csdn.net/weixin_35653315/article/details/72886718三种常用的方式如果在运行python脚本时需要传入一些参数,例如gpus与batch_size,可以使用如下三种方式。python script.py 0,1,2 10python script.py -gpus=0,1,2 --batch-size=10...
2018-11-11 21:07:20 310
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人