Winphonedriver
DEPRECATED Please see https://github.com/2gis/Winium.Mobile for latests releases. Selenium Driver for automated testing of Windows Phone 8.1 Silverlight applications.
Install / Use
/learn @2gis/WinphonedriverREADME
DEPRECATION
Please use https://github.com/2gis/Winium.Mobile for latests releases of Silverlight auotmation. Use https://www.nuget.org/packages/Winium.Silverlight.InnerServer/ package instead of WindowsPhoneDriver.InnerDriver.
This repository is no longer maintained. Code from this repository has been merged into Winium.Mobile project. Any new issues, pull requests, bug fixes, etc should be created in https://github.com/2gis/Winium.Mobile from now on.
Windows Phone Driver
Selenium Driver for automated testing of Windows Phone 8.1 Silverlight applications. For automated testing of Universal Apps see Windows Universal App Driver.
This repository hosts the code for the Windows Phone driver. You can use it for testing of native Windows Phone 8.1 applications. Currently it implements only limited subset of WebDriver JSON Wire Protocol and supports testing only via an emulator (Windows phone 8.1).
Driver contains of two parts: Outer and Inner. To run tests you will need to add WindowsPhoneDriver.InnerDriver to the app you want to test and start WindowsPhoneDriver.OuterDriver (Remote WebDriver to send Json Wire Protocol commands to).
Requirements to run tests using Windows Phone driver
- Windows 8 or higher
- Windows phone 8.1 SDK
- You will also need Visual Studio 2013 with Update 2 or higher to build driver.
Usage
-
Build solution
-
In tested app project, add reference to
WindowsPhoneDriver.InnerDriverandWindowsPhoneDriver.Common(we also have NuGet package, but it might lag behind latests version of source code) -
In your app’s source code locate place where
RootFrameis set (usually inPrepareApplicationif you useCaliburn.Microor App.xaml.cs for vanilla app) and addAutomationServer.Instance.InitializeAndStart(RootFrame);or (will include driver only for debug build)
#if DEBUG AutomationServer.Instance.InitializeAndStart(RootFrame); #endif // DEBUGwhere
RootFrameis visual root of application. -
Write your tests using you favorite language. In your test use
appdesired capability to set path to tested app's xap file (python example).... self.driver = webdriver.Remote( command_executor = 'http://localhost:9999', desired_capabilities={ "app": r"C:\testApp.xap" }) ... # find all Textblock elements blocks= self.driver.find_elements_by_tag_name("System.Windows.Controls.TextBlock") -
Start WindowsPhoneDriver.OuterDriver.exe
-
Run your tests
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
