45d6be253c | ||
---|---|---|
build | ||
src | ||
.gitattributes | ||
.gitignore | ||
.vsts-ci.yml | ||
License.md | ||
Readme.md | ||
gitversion.yml |
Readme.md
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.