.net - WinAppDriver cannot connect to wpf application -
while creating webdriver session wpf application session times out. however, wpf application launched. using nunit under windows 10. exception occurs while trying instantiate iosdriver object. sample notepad works fine https://github.com/microsoft/winappdriver/tree/master/samples/c%23/notepadtest. however, when trying same wpf app, times out.
functiontests.tests.report.loadparthistorytest.openparthistory: setup : openqa.selenium.webdriverexception : http request remote webdriver server url http://127.0.0.1:4723/session timed out after 60 seconds. ----> system.net.webexception : operation has timed out teardown : system.nullreferenceexception : object reference not set instance of object.
at openqa.selenium.appium.service.appiumcommandexecutor.execute(command commandtoexecute) @ openqa.selenium.remote.remotewebdriver.execute(string drivercommandtoexecute, dictionary2 parameters) @ openqa.selenium.remote.remotewebdriver.startsession(icapabilities desiredcapabilities) @ openqa.selenium.remote.remotewebdriver..ctor(icommandexecutor commandexecutor, icapabilities desiredcapabilities) @ openqa.selenium.appium.appiumdriver
1..ctor(uri remoteaddress, icapabilities desiredcapabilities) @ openqa.selenium.appium.ios.iosdriver`1..ctor(uri remoteaddress, desiredcapabilities desiredcapabilities)
protected const string appdriverurl = "http://127.0.0.1:4723/"; protected const string appid = @"<exelocation>"; protected static iosdriver<ioselement> studiosession; [setup] public void setup() { // launch notepad classic windows application desiredcapabilities appcapabilities = new desiredcapabilities(); appcapabilities.setcapability("app", appid); studiosession = new iosdriver<ioselement>(new uri(appdriverurl), appcapabilities); assert.isnotnull(studiosession); }
Comments
Post a Comment