Bug 1363982 - Pass browser capabilities in alwaysMatch, a=testonly
authorJames Graham <james@hoppipolla.co.uk>
Wed, 10 May 2017 15:26:16 +0100
changeset 357799 8c8ebe3b4621d3e0022ce70c59e54f48c8c7579f
parent 357798 d68c202a67091f65e127e3b25fe2ca4db78b58ef
child 357800 9661ef12f38fa606455560a225c238b0cfc520f0
push id90205
push userjames@hoppipolla.co.uk
push dateThu, 11 May 2017 17:02:12 +0000
treeherdermozilla-inbound@52aaad48467f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1363982
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1363982 - Pass browser capabilities in alwaysMatch, a=testonly MozReview-Commit-ID: FTmkGARaHOa
testing/web-platform/tests/webdriver/support/fixtures.py
--- a/testing/web-platform/tests/webdriver/support/fixtures.py
+++ b/testing/web-platform/tests/webdriver/support/fixtures.py
@@ -118,17 +118,17 @@ def session(configuration, request):
     By default the session will stay open after each test, but we always try to start a
     new one and assume that if that fails there is already a valid session. This makes it
     possible to recover from some errors that might leave the session in a bad state, but
     does not demand that we start a new session per test."""
     global _current_session
     if _current_session is None:
         _current_session = webdriver.Session(configuration["host"],
                                              configuration["port"],
-                                             capabilities=configuration["capabilities"])
+                                             capabilities={"alwaysMatch": configuration["capabilities"]})
     try:
         _current_session.start()
     except webdriver.errors.SessionNotCreatedException:
         if not _current_session.session_id:
             raise
 
     # finalisers are popped off a stack,
     # making their ordering reverse