Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[EN] ChromeDriver Jailbreak (short)

[EN] ChromeDriver Jailbreak (short)

SeleniumConf UK 2016 Lightning Talk

Video: https://youtu.be/FoTCmWvaQME?t=24m51s

Alexander Bayandin

November 16, 2016
Tweet

More Decks by Alexander Bayandin

Other Decks in Programming

Transcript

  1. Jailbreak? It allows us to use Chrome features which are

    not available through ChromeDriver. 3
  2. +-+ +-+ +--------+ +------------+ |C| |T|<---->|Selenium|<---->|ChromeDriver|<------->|h| |e| +--------+ +------------+ |r|

    |s| |o| |t|<------------------------------------------->|m| +-+ |e| +-+ WebSocket Connection
  3. +-+ +-+ +--------+ +------------+ |C| |T|<---->|Selenium|<---->|ChromeDriver|<------->|h| |e| +--------+ +------------+ |r|

    |s| |o| |t|<------------------------------------------->|m| +-+ |e| +-+ WebSocket Connection
  4. +-+ +-+ +-+ +--------+ +------------+ |P| |C| |T|<---->|Selenium|<---->|ChromeDriver|<->|r| |h| |e|

    +--------+ +------------+ |o|<->|r| |s| |x| |o| |t|<------------------------------------->|y| |m| +-+ +-+ |e| +-+ WebSocket Connection
  5. devtools-proxy examples 17 ✦ Chrome Debugging protocol methods, for example

    CPU Throttling ✦ See HTTP requests during test run
  6. devtools-proxy examples 19 ✦ Chrome Debugging protocol methods, for example

    CPU Throttling ✦ See HTTP requests during test run ✦ See what’s going on (like Remote Debugging Android Devices)
  7. Good to know before ✦ Almost no docs ✦ Doesn’t

    support Windows yet ✦ Chromium / Google Chrome only 22
  8. Good to know before ✦ Almost no docs ✦ Doesn’t

    support Windows yet ✦ Chromium / Google Chrome only ✦ Has some bugs, probably 23
  9. Good to know before ✦ Almost no docs ✦ Doesn’t

    support Windows yet ✦ Chromium / Google Chrome only ✦ Has some bugs, probably ✦ Selenium Python test suite passes 24
  10. Good to know before ✦ Almost no docs ✦ Doesn’t

    support Windows yet ✦ Chromium / Google Chrome only ✦ Has some bugs, probably ✦ Selenium Python test suite passes ✦ Python 25