Skip to content

Instantly share code, notes, and snippets.

@Micha-Mircea
Created March 3, 2022 12:26
Show Gist options
  • Save Micha-Mircea/00e457ba56e42f2d596e6aac9c3ff325 to your computer and use it in GitHub Desktop.
Save Micha-Mircea/00e457ba56e42f2d596e6aac9c3ff325 to your computer and use it in GitHub Desktop.
Second request to the Selenium Grid
POST /session HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 9fcc734a-a630-4a16-ab43-f2394576a164
Host: localhost:4444
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 595
{
"capabilities": {
"alwaysMatch": {
"appium:appActivity": "com.google.android.apps.chrome.Main",
"appium:appPackage": "com.android.chrome",
"appium:automationName": "UIAutomator2",
"appium:ensureWebviewsHavePages": true,
"appium:language": "de",
"appium:locale": "DE",
"appium:newCommandTimeout": 300,
"appium:platformVersion": "10",
"platformName": "android",
"appium:udid": "RZ8NB135G4Y",
"appium:systemPort": 8101
}
}
}
HTTP/1.1 200 OK
content-length: 1999
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
{
"value": {
"sessionId": "2c0d5a50-9660-45c6-ab6e-27ac9f9b6de9",
"capabilities": {
"appActivity": "com.google.android.apps.chrome.Main",
"appPackage": "com.android.chrome",
"appium:appActivity": "com.google.android.apps.chrome.Main",
"appium:appPackage": "com.android.chrome",
"appium:automationName": "UIAutomator2",
"appium:ensureWebviewsHavePages": true,
"appium:language": "de",
"appium:locale": "DE",
"appium:newCommandTimeout": 300,
"appium:platformVersion": "10",
"appium:systemPort": 8101,
"appium:udid": "RZ8NB135G4Y",
"automationName": "UIAutomator2",
"databaseEnabled": false,
"desired": {
"platformName": "android",
"appActivity": "com.google.android.apps.chrome.Main",
"appPackage": "com.android.chrome",
"automationName": "UIAutomator2",
"ensureWebviewsHavePages": true,
"language": "de",
"locale": "DE",
"newCommandTimeout": 300,
"platformVersion": "10",
"systemPort": 8101,
"udid": "RZ8NB135G4Y"
},
"deviceApiLevel": 29,
"deviceManufacturer": "samsung",
"deviceModel": "SM-G780F",
"deviceName": "RZ8NB135G4Y",
"deviceScreenDensity": 480,
"deviceScreenSize": "1080x2400",
"deviceUDID": "RZ8NB135G4Y",
"ensureWebviewsHavePages": true,
"javascriptEnabled": true,
"language": "de",
"locale": "DE",
"locationContextEnabled": false,
"networkConnectionEnabled": true,
"newCommandTimeout": 300,
"pixelRatio": 3,
"platform": "LINUX",
"platformName": "android",
"platformVersion": "10",
"statBarHeight": 88,
"systemPort": 8101,
"takesScreenshot": true,
"udid": "RZ8NB135G4Y",
"viewportRect": {
"left": 0,
"top": 88,
"width": 1080,
"height": 2080
},
"warnings": {
},
"webStorageEnabled": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment