This is the initial session device width of the display/viewport in pixels.
Supported frameworks | Android, iOS, Tealeaf UI Capture |
Path | <global>.<session>.<message>.clientState.deviceWidth |
Description | The initial session device width of the display/viewport in pixels |
Value | Integer |
Limitations | None |
Dependencies | Used by replay |
Example
This example shows the Client Environment message for UIC:
clientEnvironment" : {
"webEnvironment" : {
"libVersion" : "5.0.0.XXXX",
"page" : "http://uictest.com/frames/",
"referrer" : "http://uictest.com/",
"screen" : {
"devicePixelRatio" : 1,
"deviceWidth" : 1920,
"deviceHeight" : 1080,
"deviceToolbarHeight" : 34,
"width" : 942,
"height" : 955,
"orientation" : 0,
"orientationMode" : "PORTRAIT"
}
}
}
This example shows the Client Environment message for Android and iOS:
"clientEnvironment": {
"orientation": 90,
"height": 720,
"osVersion": "4.2.2",
"pixelDensity": 2,
"width": 1196,
"deviceHeight": 360,
"osType": "Android" or "iOS"
"deviceWidth": 598
}