https://github.com/unoplatform/uno.uitests.helpers
Xamarin.UITests Helpers for the Uno Platforms for iOS and Android
https://github.com/unoplatform/uno.uitests.helpers
android csharp ios uitests uno uno-platform xamarin
Last synced: 2 months ago
JSON representation
Xamarin.UITests Helpers for the Uno Platforms for iOS and Android
- Host: GitHub
- URL: https://github.com/unoplatform/uno.uitests.helpers
- Owner: unoplatform
- License: other
- Created: 2019-02-05T18:59:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T20:50:01.000Z (over 7 years ago)
- Last Synced: 2026-01-19T15:17:40.939Z (6 months ago)
- Topics: android, csharp, ios, uitests, uno, uno-platform, xamarin
- Language: C#
- Homepage: https://platform.uno/
- Size: 257 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# Uno.UITests.Helpers
A set of Xamarin.UITest helpers for the UI Testsing of [Uno Platform](https://github.com/nventive/Uno) applications for iOS and Android.
WebAssembly testing is currently not supported.
## Usage
```csharp
[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](src/SamplesApp.UITests/Given_BasicSample.cs).
For Android and iOS, the `x:Name` marked controls in the XAML are automatically mapped to `contentDescription`
when [`true`](https://github.com/nventive/Uno.UITests.Helpers/blob/02428169342c12e9d9c09a011d2395ad6248387d/src/SamplesApp/SamplesApp.Droid/SamplesApp.Droid.csproj#L23) is
set in both iOS and Android projects.