Coder Social home page Coder Social logo

unoplatform / uno.uitests.helpers Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 0.0 263 KB

Xamarin.UITests Helpers for the Uno Platforms for iOS and Android

Home Page: https://platform.uno/

License: Other

C# 98.71% CSS 0.11% JavaScript 0.17% PowerShell 1.01%
xamarin uitests uno-platform uno csharp ios android

uno.uitests.helpers's Introduction

Uno.UITests.Helpers

A set of Xamarin.UITest helpers for the UI Testsing of Uno Platform applications for iOS and Android.

WebAssembly testing is currently not supported.

Usage

[Test]
public void When_SmokeTest()
{
	var mainButton = _app.Find("mainButton");

	var position = mainButton.FirstResult().Rect;
	_app.TapCoordinates(position.X + 5, position.Y + 5);

	var mainButtonResults = _app.Find("mainButtonResults");

	_app.WaitForDependencyPropertyValue(mainButtonResults, "Text", "Pressed 1");
}

See this UI Tests sample for more details.

For Android and iOS, the x:Name marked controls in the XAML are automatically mapped to contentDescription when <IsUiAutomationMappingEnabled>true</IsUiAutomationMappingEnabled> is set in both iOS and Android projects.

uno.uitests.helpers's People

Contributors

jeromelaban avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.