Continuation of the NativeDriver project
The original project homepage can be found here: http://code.google.com/p/nativedriver/
The primary updates involve removing the old touch emulation libary - TouchSynthesis. This seems to have become defunct and the most recent version didn't work with iOs6. We decided to try and use Apple's own UIAutomation framework, while researching this and other available tools we came across PublicAutomation which is a wrapper around this private framework which should provide a more consistent interface to program against. PublicAutomation was created by the http://testingwithfrank.com/ team, they provide a test framework fr native apps using cucumber. For our purposes NativeDriver seems like a better fit, mainly due to our infrastructure having been built around Selenium, Java is our primary language and a lot of our apps using webviews extensively.
1 Added ability to set the location
-
Added a new constructor for IosNativeDriver which sets the geographical location of the device or simulator
-
usage :
-
import org.openqa.selenium.html5.Location; URL myUrl = new URL("http://localhost:3001/wd/hub"); Location geoLocation = new Location(51.5, -0.12, 0); IosNativeDriver driver; driver = new IosNativeDriver(myUrl, getCapabilities(), geoLocation); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
### 07/01/2012
1 Added ability to set/get the orientation of the device or simulator
* *usage :*
* ```java
import org.openqa.selenium.html5.Location;
URL myUrl = new URL("http://localhost:3001/wd/hub");
Location geoLocation = new Location(51.5, -0.12, 0);
IosNativeDriver driver;
driver = new IosNativeDriver(myUrl, getCapabilities(), geoLocation);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.rotate(ScreenOrientation.LANDSCAPE);
driver.rotate(ScreenOrientation.PORTRAIT);
ScreenOrientation myDeviceOrientation = driver.getOrientation();