* Retrieves all cookies visible to the current page. Each cookie will be * returned as a JSON object as described by the WebDriver wire protocol. * * @return {!Promise<!Array<!Options.Cookie>>} A promise that will be * resolved with the cookies visible to the current browsing context
()
| 2085 | * resolved with the cookies visible to the current browsing context. |
| 2086 | */ |
| 2087 | getCookies() { |
| 2088 | return this.driver_.execute(new command.Command(command.Name.GET_ALL_COOKIES)) |
| 2089 | } |
| 2090 | |
| 2091 | /** |
| 2092 | * Retrieves the cookie with the given name. Returns null if there is no such |