3 ms·
I write tests using chromedriver. Ends up being really simple to write, and if I want to debug something, it's just a chrome instance that I can use normally if
by cyrusroshan 10y ago
I write tests using chromedriver. Ends up being really simple to write, and if I want to debug something, it's just a chrome instance that I can use normally if I make the tests wait.
Only downside is you have to make it run with xvfb on the CI server, but that's pretty easy to set up in your config file usually.
- SigmundA 10y agoIs headless Chrome working yet? https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md https://chromium.googlesource.com/chromium/src/+/lkgr/headle...
- fake-name 10y agoIt works, but there are a number of issues in the remote control protocol. (note: I am developing a python wrapper for controlling it: https://github.com/fake-name/ChromeController https://github.com/fake-name/ChromeController ) I've been meaning to see about wrapping the C++ api as a python module, but not had time.
- mattfrasernz 10y agoYou can also run Chrome inside a docker container and drive it with the remote driver. Handy if you are running on an aws Linux instance with no X