{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/123","labels_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/123/comments","events_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/123/events","html_url":"https://github.com/appium/appium-dotnet-driver/issues/123","id":119048884,"number":123,"title":"iOS rotate (withOptions) parameter \"rotation\" should be float or double value","user":{"login":"BaN4NaJ0e","id":817281,"avatar_url":"https://avatars.githubusercontent.com/u/817281?v=3","gravatar_id":"","url":"https://api.github.com/users/BaN4NaJ0e","html_url":"https://github.com/BaN4NaJ0e","followers_url":"https://api.github.com/users/BaN4NaJ0e/followers","following_url":"https://api.github.com/users/BaN4NaJ0e/following{/other_user}","gists_url":"https://api.github.com/users/BaN4NaJ0e/gists{/gist_id}","starred_url":"https://api.github.com/users/BaN4NaJ0e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaN4NaJ0e/subscriptions","organizations_url":"https://api.github.com/users/BaN4NaJ0e/orgs","repos_url":"https://api.github.com/users/BaN4NaJ0e/repos","events_url":"https://api.github.com/users/BaN4NaJ0e/events{/privacy}","received_events_url":"https://api.github.com/users/BaN4NaJ0e/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T13:48:14Z","updated_at":"2015-11-26T13:48:14Z","closed_at":null,"body":"I have tried around with the rotate function on an iOS device with different values. There must be a mistake with the rotate parameter. The appium dotnet driver documentation in the AppiumDriver.cs states:\r\n\r\n> rotations options like the following:\r\n>        /// new Dictionary<string, int> {{\"x\", 114}, {\"y\", 198}, {\"duration\", 5}, \r\n>        /// {\"radius\", 3}, {\"rotation\", 220}, {\"touchCount\", 2}}\r\n[AppiumDriver.cs](https://github.com/appium/appium-dotnet-driver/blob/master/appium-dotnet-driver/Appium/AppiumDriver.cs)\r\n\r\n\r\n\"220\" is way to high and not a useful value because the apple ui automation documentation tells you:\r\n[UIAutomationJavascriptDocumentation](https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIATargetClassReference/index.html#//apple_ref/javascript/instm/UIATarget/rotateWithOptions)\r\n\r\n> rotation\r\n> The length of rotation in radians. The default is pi (π).\r\n\r\nWhoever came up with this crazy idea to use multiples of pi for the rotation, we should use it this way.\r\nSo the rotation parameter should not be an int parameter. We clearly need a float or double value to set the correct rotation angle. \r\n\r\none pi or 3.14... will rotate the screen by 180 degree. I have tried this on a map screen. Using 220 as the rotate parameter did nothing useful when using a duration of 5 seconds. These are way to many rotations in such a short time period.\r\n\r\n"}}