зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1245064 - Lower specificationLevel to 0; r=automatedtester
Marionette is not yet compatible with the WebDriver specification, and we indicate this by lowering the specificationLevel capability to 0. This lets us "gate" specification-compatible features, such as the new element interactability algorithm. The new interactability algorithm can be enabled by requesting the capability specificationLevel 1. MozReview-Commit-ID: 6wsEAsBtR6P --HG-- extra : rebase_source : f37444470987bb782f32e190e3b5476eb139f142
This commit is contained in:
Родитель
e3854ffb41
Коммит
1e70da6b17
|
@ -138,7 +138,7 @@ this.GeckoDriver = function(appName, device, stopSignal, emulator) {
|
|||
"browserVersion": Services.appinfo.version,
|
||||
"platformName": Services.sysinfo.getProperty("name"),
|
||||
"platformVersion": Services.sysinfo.getProperty("version"),
|
||||
"specificationLevel": "1",
|
||||
"specificationLevel": 0,
|
||||
|
||||
// supported features
|
||||
"raisesAccessibilityExceptions": false,
|
||||
|
|
|
@ -34,6 +34,7 @@ class TestCapabilities(MarionetteTestCase):
|
|||
self.assertEqual(self.caps["browserVersion"], self.appinfo["version"])
|
||||
self.assertEqual(self.caps["platformName"], self.os_name)
|
||||
self.assertEqual(self.caps["platformVersion"], self.os_version)
|
||||
self.assertEqual(self.caps["specificationLevel"], 0)
|
||||
|
||||
def test_supported_features(self):
|
||||
self.assertIn("rotatable", self.caps)
|
||||
|
@ -67,6 +68,12 @@ class TestCapabilities(MarionetteTestCase):
|
|||
caps = self.marionette.session_capabilities
|
||||
self.assertIn("somethingAwesome", caps)
|
||||
|
||||
def test_set_specification_level(self):
|
||||
self.marionette.delete_session()
|
||||
self.marionette.start_session({"specificationLevel": 1})
|
||||
caps = self.marionette.session_capabilities
|
||||
self.assertEqual(1, caps["specificationLevel"])
|
||||
|
||||
def test_we_dont_overwrite_server_capabilities(self):
|
||||
self.marionette.delete_session()
|
||||
capabilities = {"desiredCapabilities": {"browserName": "ChocolateCake"}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче