w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
679 stars 194 forks source link

Example 4 clarification of firstMatch JSON type #1660

Closed Kagre closed 2 years ago

Kagre commented 2 years ago

In chapter 5. Protocol, section 5.7 Protocol Extensions: EXAMPLE 4

"firstMatch": {
      // browser specific configuration
      "moz:firefoxOptions": {
          "binary": "/usr/bin/firefox",
          "args": ["--no-remote"],
          "prefs": {
              "dom.ipc.processCount": "8"
          },
          "log": {
              "level": "trace",
              "file": "/tmp/geckodriver.log"
          }
      }
  }

According to section 6.3 step 3.2 this is supposed to be a list

    "firstMatch": [{
            // browser specific configuration
            "moz:firefoxOptions": {
                "binary": "/usr/bin/firefox",
                "args": ["--no-remote"],
                "prefs": {
                    "dom.ipc.processCount": "8"
                },
                "log": {
                    "level": "trace",
                    "file": "/tmp/geckodriver.log"
                }
            }
        }]
Kagre commented 2 years ago

sorry, looks fixed in the "live" version