4 ms·
No mention of WebDriver, only Chrome's devtools protocol :( There's probably a proxy or something, but would be nice to see completely integrated native support
by floatboth 9y ago
No mention of WebDriver, only Chrome's devtools protocol :( There's probably a proxy or something, but would be nice to see completely integrated native support.
- llimllib 9y agocorrect me if I'm wrong, but doesn't webdriver communicate with Chrome via the devtools protocol?
- floatboth 9y agoWebDriver is a protocol: https://www.w3.org/TR/webdriver/ https://www.w3.org/TR/webdriver/
- llimllib 9y agoyeah yeah yeah I'm sorry I mean Chrome webdriver, I think that was clear from context? As in selenium -> webdriver protocol -> chrome webdriver -> devtools protocol -> chrome instance
- talawahdotnet 9y agoThat proxy already exists. It is called ChromeDriver[1][2] and was developed in collaboration between the Chromium and Selenium teams. It is the same way that Selenium/Webdriver controls regular Chrome now. It would have been nice if they at least mentioned it in the article since Selenium is such a popular browser automation tool. They do in fact mention it on the README page for headless chromium. [1] https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver [2] https://sites.google.com/a/chromium.org/chromedriver/home https://sites.google.com/a/chromium.org/chromedriver/home [3] https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md https://chromium.googlesource.com/chromium/src/+/lkgr/headle...
- fake-name 9y agoThe problem with ChromeDriver is that it implements Selenium's idea of what the remote control interface should look like, and frankly speaking, Selenium's idea has some enormous and idiotic oversights[1]. [1] http://stackoverflow.com/questions/3492541/how-do-i-get-the-response-headers-in-selenium http://stackoverflow.com/questions/3492541/how-do-i-get-the-...
- tlrobinson 9y agoChromeDriver also has a particularly annoying race condition when triggering clicks https://bugs.chromium.org/p/chromedriver/issues/detail?id=28 https://bugs.chromium.org/p/chromedriver/issues/detail?id=28 which often only appears on slow machines such as multitenant CI services like CircleCI (https://circleci.com/docs/1.0/chromedriver-moving-elements/ https://circleci.com/docs/1.0/chromedriver-moving-elements/)