码迷,mamicode.com
首页 >  
搜索关键字:python+selenium    ( 767个结果
Python +selenium自动化环境的搭建
Python +selenium+googledriver 小白的血泪安装使,不停的总结写心得是理解透彻的毕竟之路 一,python的安装: 1.首先去Python的官网下载安装包:https://www.python.org/ 2.下载完成后如下图所示 3.双击exe文件进行安装,如下图,并按照圈 ...
分类:编程语言   时间:2018-12-15 14:29:34    阅读次数:201
python selenium配置
写该博客时环境 mac 10.14.1 (18B75) python 3.7 pip (不用这个就是了,用pip3) $ pip --version pip 10.0.1 from /Users/wjw/anaconda3/lib/python3.7/site-packages/pip (pytho ...
分类:编程语言   时间:2018-12-10 23:33:34    阅读次数:351
python+selenium自动测试之WebDriver的常用API(基础篇一)
基于python3.6,selenium3.141,详细资料介绍查看官方API文档,点击这里 一、对浏览器操作 二、页面元素定位 最好使用id,name的方式定位元素,因为一般这两个元素是全局唯一的;有时候元素不唯一,推荐使用xpath或者css定位,根据个人喜好而定,不推荐使用class 三、页面 ...
分类:编程语言   时间:2018-12-08 21:13:24    阅读次数:169
Python + selenium 爬取百度文库Word文本
1 # -*- coding:utf-8 -*- 2 3 import time 4 from selenium import webdriver 5 from selenium.webdriver.chrome.options import Options 6 from selenium.comm... ...
分类:编程语言   时间:2018-12-08 13:21:41    阅读次数:243
python自动化之(自动化测试报告)
前言: 给予你们最关心的3步骤 什么是自动化测试报告? 答:在自动化测试过程中自动生成的测试报告 为什么要做自动生成测试报告? 答:真正的解放双手; 可以形成直观的测试结果; 给自己一个装X的机会; 给Boss一个好印象 怎么做自动化测试报告? 大概思路: 下载自动化测试模块, 放在指定的路径. 在 ...
分类:编程语言   时间:2018-12-05 16:14:07    阅读次数:843
python selenium-8 Page Object模式
封装空间操作为一个接口使用,而不是直接在页面中查找 ...
分类:编程语言   时间:2018-12-01 12:57:53    阅读次数:141
python selenium-7自动发送邮件
https://jingyan.baidu.com/article/647f0115b78f8d7f2148a8e8.html 1.发送HTML格式的邮件 2.发送文本内容的邮件 其中 s = smtplib.SMTP_SSL("smtp.qq.com", 465) 相当于以下2行 s = smtp ...
分类:编程语言   时间:2018-12-01 11:17:17    阅读次数:225
Python Selenium set Chrome Preference Download Location.
def set_chrome_pref(self): chromeOptions = webdriver.ChromeOptions() prefs = {"download.default_directory": 'des_dir'} chromeOptions.add_experimental_ ...
分类:编程语言   时间:2018-11-29 16:38:44    阅读次数:330
python selenium right click on an href and choose Save link as... on Chrome.
From:https://stackoverflow.com/questions/42781483/right-click-on-an-href-and-choose-save-link-as-in-python-selenium/42783015原生代码:from selenium import ...
分类:编程语言   时间:2018-11-29 12:26:20    阅读次数:189
python+selenium定位iframe
定位iframe # 1.有id,并且唯一,直接写id driver.switch_to_frame("xxx") driver.switch_to.frame("xxx") # 2.有name,并且唯一,直接写name driver.switch_to_frame("xxxx") driver.s... ...
分类:编程语言   时间:2018-11-26 21:01:30    阅读次数:248
767条   上一页 1 ... 25 26 27 28 29 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!