没有合适的资源?快使用搜索试试~ 我知道了~
python+selenium
需积分: 18 5 下载量 134 浏览量
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
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 两相步进电机FOC矢量控制Simulink仿真模型 1.采用针对两相步进电机的SVPWM控制算法,实现FOC矢量控制,DQ轴解耦控制~ 2.转速电流双闭环控制,电流环采用PI控制,转速环分别采用PI和
- VMware虚拟机USB驱动
- Halcon手眼标定简介(1)
- (175128050)c&c++课程设计-图书管理系统
- 视频美学多任务学习中PyTorch的多回归实现-含代码及解释
- 基于ssh员工管理系统
- 5G SRM815模组原理框图.jpg
- T型3电平逆变器,lcl滤波器滤波器参数计算,半导体损耗计算,逆变电感参数设计损耗计算 mathcad格式输出,方便修改 同时支持plecs损耗仿真,基于plecs的闭环仿真,电压外环,电流内环
- 毒舌(解锁版).apk
- 显示HEX、S19、Bin、VBF等其他汽车制造商特定的文件格式
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功