06
Nov

Sample requests to create a browser session with JSONWire Protocol in Selenium WebDriver

Sample requests to create a browser session with JSONWire Protocol in Selenium WebDriver

Pre-requisites:

Start hub and register chrome, ie nodes

http://defectracker.com/wp-content/uploads/2019/11/SampleRequests_to_create_aBrowserSessionwithJSONWireProtocol7z.txt

References:

https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize


{
  "capabilities": {
        "firstMatch": [
            {"browserName": "chrome"},
            {"browserName": "edge"}
        ]
    }

} 


 OR

{
  "desiredCapabilities": {
    "browserName": "chrome",
    "platform": "ANY",
    "javascriptEnabled" : true,
    "takesScreenshot" : true,
    "acceptSslCerts" : true
    "requiredCapabilities": {}
  }
}