How to use windows phone webdriver?

Dec 16, 2014 at 9:49 AM
Edited Dec 16, 2014 at 9:58 AM
Where to write code and how to build it for using windows phone webdriver.

sample code:
RemoteWebDriver driver = RemoteWebDriver(
new Uri("http://157.59.109.235:8080"),
DesiredCapabilities.InternetExplorer());

driver.Navigate().GoToUrl("https://winphonewebdriver.codeplex.com/");
Coordinator
Dec 17, 2014 at 7:41 AM
Hello,

I am not sure I understood the question right, but if it was about how to write test code using the RemoteWebDriver API, I suggest starting from Selenium documentation and the API documentation of the language binding you are intending to use. One potential place to start is https://code.google.com/p/selenium/wiki/GettingStarted followed by the API specification of the language binding, for example, the Java API at https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/remote/RemoteWebDriver.html .

I suggest you try to write a simple test case (perhaps something like http://jonausten.info/2012/11/21/a-simple-selenium-2-remote-webdriver-example/ ) and then make sure you can build and run it against some "mature" driver like the one for Chrome or Firefox.

After that, you could download and install the .xap file found from this projects' download page https://winphonewebdriver.codeplex.com/releases/view/115314 . Then, you should be able to set the IP address you give to RemoteWebDriver to be the one your Windows Phone has and be able to run the tests there. For this to work, the Windows Phone and the machine you run the tests with needs to be able to connect with each other (for example, be in the same WiFi network).
Dec 17, 2014 at 9:11 AM
will windows phone driver work with Java?

from where I can know the APIs I should use for interacting with browser, like clicking, entering text in a input box, taking snapshot etc.
Coordinator
Dec 29, 2014 at 8:48 PM
It will work with Java but currently its not supported to win8.1 however win 8.0 it is in working condition
Dec 30, 2014 at 3:24 AM
Edited Dec 30, 2014 at 3:26 AM
Yes it is working with windows 8 emulator. Thanks!