自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 selenium如何屏蔽谷歌浏览器弹出的通知

使用selenium访问新浪微博的时候  浏览器总会有个通知,需要点击  类似下面这样下面使用chromeoptions来修改浏览器的设置from selenium import webdriverimport timeoptions = webdriver.ChromeOptions()prefs = { 'profile.default_content_sett

2018-01-30 11:54:57 18572 1

转载 python os.path模块

os.path.abspath(path) #返回绝对路径os.path.basename(path) #返回文件名os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。os.path.dirname(path) #返回文件路径os.path.exists(path)  #路径存在则返回True,路径损坏返

2017-11-08 15:19:10 199

转载 selenium之 chromedriver与chrome版本映射表(更新至v2.33)

看到网上基本没有最新的chromedriver与chrome的对应关系表,便兴起整理了一份如下,希望对大家有用:chromedriver版本支持的Chrome版本v2.33v60-62v2.32v59-61v2.31v58-60v2.30v58-60v

2017-11-04 17:01:47 648

转载 python3 sort sorted 函数应用

python3 sorted取消了对cmp的支持。python3 帮助文档:sorted(iterable,key=None,reverse=False)key接受一个函数,这个函数只接受一个元素,默认为Nonereverse是一个布尔值。如果设置为True,列表元素将被倒序排列,默认为False着重介绍key的作用原理:ke

2017-11-03 11:04:46 325

转载 Python:XXX missing X required positional argument: 'self'

代码的一个小小Bug有时候会让人焦头烂额,费了很大劲搞明白的问题,如果不记录下来,是很容易遗忘的! 定义一个类,如果按照以下的方式使用,则会出现TypeError: testFunc() missing 1 required positional argument: 'self'。如果认真细究的话,笔者曾反复修改参数,但是于事无补。 在Python中,应该先

2017-11-02 11:20:53 3350

转载 Python异常处理try...except、raise

一、try...except有时候我们写程序的时候,会出现一些错误或异常,导致程序终止。例如,做除法时,除数为0,会引起一个ZeroDivisionError例子:1234a=10b=0c=a/bprint "done"运行结果:T

2017-11-02 10:49:47 331

原创 百度搜索练习

#coding=utf-8#filename = "百度搜索设置练习"from selenium import webdriverimport timedriver = webdriver.Chrome()driver.get("http://www.baidu.com") #打开百度页driver.maximize_window() #窗口最大化time.sleep(3)

2017-06-08 17:11:20 362

原创 selenium定位练习(csdn写博客)

#coding=utf-8from selenium import webdriverimport timedriver =webdriver.Chrome() #打开浏览器driver.get("https://passport.csdn.net/account/login?ref=toolbar") #打开csdn地址title = driver.title #获取页面ti

2017-06-08 16:38:39 373

原创 selenium元素定位练习(新浪博客)

#coding=utf-8#filename="定位元素"#author =lihfrom selenium import webdriverimport timedriver = webdriver.Chrome()driver.get("http://www.baidu.com") #打开百度time.sleep(3)driver.maximize_window() #窗口

2017-06-08 16:30:42 439

原创 selenium ide录制脚本回放报错

报错信息:There was an unexpected error. Msg: TypeError: window is nullUrl: chrome://selenium-ide/content/selenium-runner.js, line: 390, column: 7createSelenium@chrome://selenium-ide/content/selenium-r

2017-02-23 16:35:11 4025

原创 Python使用selenium出错

报错信息:Traceback (most recent call last):  File "C:/Users/andy/Desktop/Python_test/baidutest.py", line 4, in     driver = webdriver.Firefox()  File "C:\Python27\lib\site-packages\selenium\webdrive

2017-02-16 17:00:57 3711

转载 web测试方法总结

一、输入框1、字符型输入框:(1)字符型输入框:英文全角、英文半角、数字、空或者空格、特殊字符“~!@#¥%……&*?[]{}”特别要注意单引号和&符号。禁止直接输入特殊字符时,使用“粘贴、拷贝”功能尝试输入。(2)长度检查:最小长度、最大长度、最小长度-1、最大长度+1、输入超工字符比如把整个文章拷贝过去。(3)空格检查:输入的字符间有空格、字符前有空格、字符后有空格、字符前后有

2017-01-24 12:23:40 454

转载 APP测试要点

APP测试的时候,建议让开发打好包APK和IPA安装包,测试人员自己安装应用,进行测试。在测试过程中需要注意的测试点如下:

2017-01-11 16:25:20 369

原创 新的开始

转眼马上干测试已经快2年了  还停留在功能测试,最近在学习Python  希望新的一年,有一个新的开始。

2017-01-11 16:07:26 352

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除