Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #120 from aerokube/more_examples
Browse files Browse the repository at this point in the history
add curl example
  • Loading branch information
vania-pooh authored Jul 23, 2018
2 parents 1fab463 + 45fc3ba commit e242370
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions web/src/containers/Capabilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,25 @@ const code = (browser = 'UNKNOWN', version = '', origin = 'http://selenoid-uri:4
# please note that real accessible selenoid uri can be different
browserName: "${browser}"
version: "${version}"
enableVNC: true
enableVideo: false
`,
curl: `curl -X POST 'http://127.0.0.1:4444/wd/hub/session' -d '{
"desiredCapabilities":{
"browserName":"${browser}",
"version": "${version}",
"platform":"ANY",
"enableVNC": true,
"name": "this.test.is.launched.by.curl",
"sessionTimeout": 30
}
}'
`,
java: `DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setBrowserName("${browser}");
capabilities.setVersion("${version}");
capabilities.setCapability("enableVNC", true);
capabilities.setCapability("enableVideo", false);
RemoteWebDriver driver = new RemoteWebDriver(
URI.create("${origin}/wd/hub").toURL(),
Expand All @@ -34,7 +49,9 @@ var driver = new RemoteWebDriver(new Uri("${origin}/wd/hub"), capabilities);
capabilities = {
"browserName": "${browser}",
"version": "${version}"
"version": "${version}",
"enableVNC": True,
"enableVideo": False
}
driver = webdriver.Remote(
Expand All @@ -47,7 +64,9 @@ var options = {
host: '${origin}',
desiredCapabilities: {
browserName: '${browser}',
version: '${version}'
version: '${version}',
enableVNC: true,
enableVideo: false
}
};
var client = webdriverio.remote(options);
Expand Down

0 comments on commit e242370

Please sign in to comment.