Commit dc81624
committed
Do not camelize Chrome localState object
It's common to use Chrome options local state to configure experimental
options. We should avoid modifying these keys in any way similar to
prefs object.
options = Selenium::WebDriver::Chrome::Options.new
options.add_option(:local_state, {
'browser.enabled_labs_experiments' => [
'same-site-by-default-cookies@2',
'cookies-without-same-site-must-be-secure@2'
]
}1 parent f5989bf commit dc81624
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- rb
- lib/selenium/webdriver/chrome
- spec/unit/selenium/webdriver/chrome
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
282 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
0 commit comments