Skip to content

WIP: Replace PhantomJS with headless Chrome for Rspec and Spinach tests

Stan Hu requested to merge sh-headless-chrome-support into master

To run:

You need to download ChromeDriver 2.31 and install it: http://chromedriver.storage.googleapis.com/index.html?path=2.31/

Current Issues:

Bug report: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1772. Some users mention compiling with use_ozone on Chrome and ChromeDriver solves this problem.

Alternatives: Use xvfb (https://github.com/Automattic/wp-e2e-tests/issues/515#issuecomment-301165065)

Be sure to read https://makandracards.com/makandra/7617-change-how-capybara-sees-or-ignores-hidden-elements about how Chrome/Selenium behaves differently with hidden elements.

Closes #30876 (moved)

Edited by Stan Hu

Merge request reports