March 2015
Intermediate to advanced
194 pages
3h 59m
English
Cookies are generally stored in a web browser to identify the user's activity when browsing a web page. Selenium WebDriver handles web browser cookies by finding, deleting, modifying, and adding the cookies. It provides an excellent mechanism to modify cookies for high-level automation testing. Let's discuss Selenium WebDriver cookies, as follows:
getCookies() method returns cookies present in a loaded page. The following is the syntax for this function:driver.manage().getCookies();
Some of the useful tasks that you can perform with the help of getCookies() function are discussed as follows:
Return cookies: The getCookies() method captures all the cookies generated in a web page. Let's see a model to get to know how we can return the ...
Read now
Unlock full access