(WebDriver driver)
| 41 | ConverterFunctions.map("partitionKey", PartitionKey.class); |
| 42 | |
| 43 | public Storage(WebDriver driver) { |
| 44 | Require.nonNull("WebDriver", driver); |
| 45 | |
| 46 | if (!(driver instanceof HasBiDi)) { |
| 47 | throw new IllegalArgumentException("WebDriver instance must support BiDi protocol"); |
| 48 | } |
| 49 | |
| 50 | this.bidi = ((HasBiDi) driver).getBiDi(); |
| 51 | } |
| 52 | |
| 53 | public GetCookiesResult getCookies(GetCookiesParameters params) { |
| 54 | return this.bidi.send( |