Skip to content

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

License

Notifications You must be signed in to change notification settings

unoplatform/Uno.UITests.Helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages