Skip to Main Content
Selenium WebDriver 3 Practical Guide - Second Edition
book

Selenium WebDriver 3 Practical Guide - Second Edition

by Pallavi Sharma, UNMESH GUNDECHA, Satya Avasarala
July 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
7h 27m
English
Packt Publishing
Content preview from Selenium WebDriver 3 Practical Guide - Second Edition

Handling cookies

Let's say you are automating the demo application. There could be many scenarios you want to automate, such as searching for products, adding products to the shopping cart, checkout, returns, and so on. For all these actions, one common thing is to have to log into the demo application in each of the test cases. So, logging into the application in every test case of yours will increase the overall test execution time significantly. To reduce the execution time of your test cases, you can actually skip signing in for every test case. This can be done by signing in once and writing all the cookies of that domain into a file. From the next login onward, you can actually load the cookies from the file and add them to the driver. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Selenium WebDriver 3.0 - Second Edition

Mastering Selenium WebDriver 3.0 - Second Edition

Mark Collin
Selenium Essentials

Selenium Essentials

Prashanth Sams
Learn Selenium

Learn Selenium

Unmesh Gundecha, Carl Cocchiaro

Publisher Resources

ISBN: 9781788999762Supplemental Content