Permalink
Browse files

add --orientation cli param

  • Loading branch information...
1 parent 764525b commit b4a7ddd0223d2eae378ad0b3c604f1cc10f9e0e3 @jlipps jlipps committed Mar 28, 2013
Showing with 10 additions and 1 deletion.
  1. +1 −1 app/appium.js
  2. +8 −0 app/parser.js
  3. +1 −0 docs/server-args.md
View
@@ -320,7 +320,7 @@ Appium.prototype.invoke = function() {
, reset: !this.args.noReset
, autoWebview: this.args.safari
, deviceType: this.iosDeviceType
- , startingOrientation: this.desiredCapabilities.orientation || this.desiredCapabilities.rotatable
+ , startingOrientation: this.desiredCapabilities.deviceOrientation || this.args.orientation
};
this.devices[this.deviceType] = ios(iosOpts);
} else if (this.isAndroid()) {
View
@@ -175,6 +175,14 @@ var args = [
, required: false
, help: "(IOS-only) Use the iPad Simulator no matter what the app wants"
, nargs: 0
+ }],
+
+ [['--orientation'], {
+ defaultValue: null
+ , required: false
+ , example: "LANDSCAPE"
+ , help: "(IOS-only) use LANDSCAPE or PORTRAIT to initialize all requests " +
+ "to this orientation"
}]
];
View
@@ -28,3 +28,4 @@ All flags are optional, but some are required in conjunction with certain others
|`--safari`|false|(IOS-Only) Use the safari app||
|`--force-iphone`|false|(IOS-only) Use the iPhone Simulator no matter what the app wants||
|`--force-ipad`|false|(IOS-only) Use the iPad Simulator no matter what the app wants||
+|`--orientation`|null|(IOS-only) use LANDSCAPE or PORTRAIT to initialize all requests to this orientation|`--orientation LANDSCAPE`|

0 comments on commit b4a7ddd

Please sign in to comment.