Skip to content

Trouble following "Chrome for Android" documentation #44846

Open
@brycethomas

Description

I've hit a few issues following this doc for the first time: https://web-platform-tests.org/running-tests/chrome_android.html

  1. The doc states "If you have previously run ./wpt run against Chrome, you might need to remove _venv/bin/chromedriver so that we can install the correct ChromeDriver corresponding to your Chrome for Android version.". I have previously run ./wpt run against Chrome, so I had a look for the file _venv/bin/chromedriver but I didn't find a _venv/ directory. The closest directory I found was _venv3/bin/, but it didn't contain a file named chromedriver. It would be good to clarify/update what file(s) if any need to be deleted.
  2. Moving on, I tried running this command based on the docs: ./wpt run --test-type=testharness --channel=stable chrome_android TESTS. This threw an error: TypeError: Chrome.install_webdriver_by_version() missing 1 required positional argument: 'channel'. I was able to get past that issue by passing channel as the final argument in the code here:
    return chrome.install_webdriver_by_version(self.version(browser_binary), dest)
  3. Now, running the tests fails with the message CRITICAL Max restarts exceeded. Here's the full output of an example test run:
$ ./wpt run --test-type=testharness --channel=stable chrome_android fetch/api/request/url-encoding.html
Download and install chromedriver [Y/n]? Y
Running 1 tests in web-platform-tests

8000
8001
8888
8889
8443
8444
CRITICAL Max restarts exceeded
Ran 0 tests finished in 4.9 seconds.
  • 0 ran as expected. 0 tests skipped.

I found this open issue from 2020 that looks like it might be related: #26233 .

General question: I see the docs mention Android support is "prototype". Would it be fair to say not many people are using it/supporting its further development? For example the second issue above (passing the channel argument) seems like something someone would have run into a while back if these instructions were in use?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions