没有合适的资源?快使用搜索试试~ 我知道了~
python+selenium
需积分: 18 5 下载量 48 浏览量
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
资源推荐
资源详情
资源评论















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

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

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页未读,继续阅读
资源评论


Andmemi
- 粉丝: 53
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 联立方程计量经济模型.doc
- 项目管理软件-实践作业-排水工程-实践二-回填模板.doc
- 孤立词语音识别技术研究.doc
- 2023年C#试题库最全版.doc
- 仪器设备维护保养记录使用记录.doc
- 南开春秋学期计算机高级网络技术在线作业.doc
- 金河商贸城招商方案.doc
- 做一个让学生喜欢家长满意的教师.doc
- 15个节拍告诉你-《疯狂动物城》是怎样讲故事的?.doc
- 安全管理岗位职责.doc
- 幼儿园厨房各岗位工作职责责任.doc
- 中考英语试题专题练习并列连词解析版.doc
- 2023年计算机应用基础形成性考核册答案重点资料.doc
- 质量监督体系制度.doc
- SZSY-CX-032-控制计划管理程序.doc
- 高校绩效考核方案设计.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
