-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hi Guys,
I've been watching the videos, and scavenging over all the source code and I could not get my sample app test to run successfully. Its a simple Xamarin/UWP10 project. But it always fails on the constructor of the WpDriver (code below). I'm using Winium.StoreApps.Driver v162.
DesiredCapabilities cap = new DesiredCapabilities();
cap.SetCapability("app", @"App001.UWP_1.0.1.0_x86_x64_arm_Debug.appxbundle");
cap.SetCapability("deviceName", "Mobile Emulator 10.0.14393.0 WVGA 4 inch 512MB");
cap.SetCapability("debugConnectToRunningApp", true);
oDriver = new WpDriver(new Uri("http://localhost:9999/"), cap);
The exception i get is the following:
"There is an error in XML document (30, 15). (33)"
trace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
at UITest1.WpDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities) in C:\Users\Mac\Desktop\UITest1\WpDriver.cs:line 40
at UITest1.WinniumTest.initialize() in C:\Users\Mac\Desktop\UITest1\WinniumTest.cs:line 43
Can you let me know what am I missing? (sample project attached).