| 程序包 | 说明 |
|---|---|
| org.openqa.selenium |
| 限定符和类型 | 方法和说明 |
|---|---|
Cookie |
Cookie.Builder.build() |
Cookie |
WebDriver.Options.getCookieNamed(String name)
Get a cookie with a given name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Cookie> |
WebDriver.Options.getCookies()
Get all the cookies for the current domain.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WebDriver.Options.addCookie(Cookie cookie)
Add a specific cookie.
|
void |
WebDriver.Options.deleteCookie(Cookie cookie)
Delete a cookie from the browser's "cookie jar".
|