没有合适的资源?快使用搜索试试~ 我知道了~
python+selenium
需积分: 18 5 下载量 8 浏览量
2018-04-05
19:24:49
上传
评论
收藏 5.99MB PDF 举报
温馨提示
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book
资源推荐
资源详情
资源评论
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/release/download_crawler_static/10329382/bg3.jpg)
TableofContents
LearningSeleniumTestingToolswithPython
Credits
AbouttheAuthor
AbouttheReviewers
www.PacktPub.com
Supportfiles,eBooks,discountoffers,andmore
Whysubscribe?
FreeaccessforPacktaccountholders
Preface
Whatthisbookcovers
Whatyouneedforthisbook
Whothisbookisfor
Conventions
Readerfeedback
Customersupport
Downloadingtheexamplecode
Errata
Piracy
Questions
1.GettingStartedwithSeleniumWebDriverandPython
Preparingyourmachine
InstallingPython
InstallingtheSeleniumpackage
BrowsingtheSeleniumWebDriverPythondocumentation
SelectinganIDE
PyCharm
ThePyDevEclipseplugin
PyScripter
SettingupPyCharm
TakingyourfirststepswithSeleniumandPython
Cross-browsersupport
SettingupInternetExplorer
SettingupGoogleChrome
Summary
2.WritingTestsUsingunittest
Theunittestlibrary
TheTestCaseclass
ThesetUp()method
Writingtests
www.allitebooks.com
![](https://csdnimg.cn/release/download_crawler_static/10329382/bg4.jpg)
Cleaningupthecode
Runningthetest
Addinganothertest
Class-levelsetUp()andtearDown()methods
Assertions
Testsuites
GeneratingtheHTMLtestreport
Summary
3.FindingElements
Usingdevelopertoolstofindlocators
InspectingpagesandelementswithFirefoxusingtheFirebugadd-in
InspectingpagesandelementswithGoogleChrome
InspectingpagesandelementswithInternetExplorer
FindingelementswithSeleniumWebDriver
Usingthefindmethods
FindingelementsusingtheIDattribute
Findingelementsusingthenameattribute
Findingelementsusingtheclassname
Findingelementsusingthetagname
FindingelementsusingXPath
FindingelementsusingCSSselectors
Findinglinks
Findinglinkswithpartialtext
Puttingalltheteststogetherusingfindmethods
Summary
4.UsingtheSeleniumPythonAPIforElementInteraction
ElementsofHTMLforms
UnderstandingtheWebDriverclass
PropertiesoftheWebDriverclass
MethodsoftheWebDriverclass
UnderstandingtheWebElementclass
PropertiesoftheWebElementclass
MethodsoftheWebElementclass
Workingwithforms,textboxes,checkboxes,andradiobuttons
Checkingwhethertheelementisdisplayedandenabled
Findingtheelementattributevalue
Usingtheis_selected()method
Usingtheclear()andsend_keys()methods
Workingwithdropdownsandlists
UnderstandingtheSelectclass
PropertiesoftheSelectclass
MethodsoftheSelectclass
Workingwithalertsandpop-upwindows
UnderstandingtheAlertclass
www.allitebooks.com
![](https://csdnimg.cn/release/download_crawler_static/10329382/bg5.jpg)
PropertiesoftheAlertclass
MethodsoftheAlertclass
Automatingbrowsernavigation
Summary
5.SynchronizingTests
Usingimplicitwait
Usingexplicitwait
Theexpectedconditionclass
Waitingforanelementtobeenabled
Waitingforalerts
Implementingcustomwaitconditions
Summary
6.Cross-browserTesting
TheSeleniumstandaloneserver
DownloadingtheSeleniumstandaloneserver
LaunchingtheSeleniumstandaloneserver
RunningatestontheSeleniumstandaloneserver
AddingsupportforInternetExplorer
AddingsupportforChrome
SeleniumGrid
LaunchingSeleniumserverasahub
Addingnodes
AddinganIEnode
AddingaFirefoxnode
AddingaChromenode
MacOSXwithSafari
RunningtestsinGrid
Runningtestsinacloud
UsingSauceLabs
Summary
7.TestingonMobile
IntroducingAppium
PrerequisitesforAppium
SettingupXcodeforiOS
SettingupAndroidSDK
SettinguptheAppiumPythonclientpackage
InstallingAppium
AppiumInspector
TestingoniOS
WritingatestforiOS
TestingonAndroid
WritingatestforAndroid
UsingSauceLabs
www.allitebooks.com
剩余269页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/dd5f3d1144b34cb2ba178127db6f779b_yyp12321.jpg!1)
Andmemi
- 粉丝: 53
- 资源: 11
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- 1111111111111111111112222222222222222
- 一个qtlog输出的工程,会按照分钟的频率输出log
- yolov10玩手机打电话检测训练权重+1万玩手机打电话检测数据集
- yolov9玩手机检测,训练好的权重,可以直接使用,并附有10000左右数据集
- piCorePlayer9.2.0-64Bit.img.xz
- 如何利用大模型技术在DT浏览器查空气质量
- C语言程序设计-学生成绩管理系统
- 最新UI界面发卡源码+多语言+多个主流钱包+搭建教程.zip
- KeymouseGo-简单好用的鼠标轨迹记录-循环运行脚本
- 2024全新版视频短剧SAAS系统/影视短剧小程序/短剧APP小程序源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)