/// <summary> /// Initializes a new instance of the <see cref="AndroidDevice"/> class. /// </summary> /// <param name="configuration">Device Configuration</param> public AndroidDevice(DeviceConfiguration configuration) { Configuration = configuration; var server = new UiAutomatorServer(new Terminal(configuration), configuration.Port, configuration.DumpTimeout); Adb = new AdbService(new Terminal(configuration)); Ui = new UiService( new ScreenDumper(server, configuration.DumpTries), new NodeParser(), new NodeFinder()); Settings = new SettingsService(); Activity = new ActivityService(); Interaction = new InteractionService(server); SetOwner(); InstallHelperApks(); }
public void SetUp() { _server = new UiAutomatorServer(new Terminal(new DeviceConfiguration()), 9008, 10); }