Guest User

Untitled

a guest
Jul 17th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.80 KB | None | 0 0
  1. # cat go.sh
  2. #!/bin/bash
  3.  
  4. curl -X POST 'http://qa:qa@localhost:4444/wd/hub/session' -d '{
  5.            "desiredCapabilities":{
  6.                "browserName":"chrome",
  7.                "version": "80.0",
  8.                "platform":"ANY",
  9.                "enableVNC": true,
  10.  "enableVideo": true,
  11.  "videoName":"foobarvid.mp4",
  12.                "name": "this.test.is.launched.by.curl",
  13.                "sessionTimeout": "120s"
  14.            }
  15.        }'
  16.  
  17. # bash go.sh
  18. {"sessionId":"7bf13cee2dbb440e455655fd265ea7c0361da0d3de39654aa6f7331e62355fe6","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882})","userDataDir":"/tmp/.com.google.Chrome.ywLvlD"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:44399"},"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Linux","proxy":{},"rotatable":false,"setWindowRect":true,"strictFileInteractability":false,"takesHeapSnapshot":true,"takesScreenshot":true,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unexpectedAlertBehaviour":"ignore","version":"80.0.3987.132","webStorageEnabled":true}}
  19.  
  20. # curl http://qa:qa@localhost:4444/video/7bf13cee2dbb440e455655fd265ea7c0361da0d3de39654aa6f7331e62355fe6
  21.  
  22. # curl http://qa:qa@localhost:4444/video/foobarvid.mp4
  23. {"status":13,"value":{"message":"invalid request URL"}}
  24.  
  25. # curl http://qa:qa@localhost:4444/video/foobarvid
  26. {"status":13,"value":{"message":"invalid request URL"}}
Advertisement
Add Comment
Please, Sign In to add comment