You will notice that in the tearDown()
, we call quit()
.We call quit()
because this call cleans up all of the resources that WebDriver starts up and uses. If you were to call close()
, it will only close the window that Selenium WebDriver is currently on. On some implementations of the server-side, or browser code, when we use close()
method and it is the last window open, then the server-side code will act as though quit()
was called.
Learning Selenium Testing Tools - Third Edition
Learning Selenium Testing Tools - Third Edition
Overview of this book
Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with Selenium IDE
Locators
Overview of the Selenium WebDriver
Finding Elements
Design Patterns
Working with WebDriver
Automation Framework Development and Building Utilities
Mobile Devices
Getting Started with the Selenium Grid
Advanced User Interactions
Working with HTML5
Advanced Topics
Migrating from Remote Control to WebDriver
Automation Prerequisites for Selenium Automation
Answers for Self-test Questions
Index
Customer Reviews