|145147||Jun 10,2019 08:02 AM UTC||Nov 15,2019 07:02 AM UTC||Xamarin.iOS||7|
Can you explain to me for understanding why is not possible to use Xamarin.UITest to click on OK button in order to close the picker after choosing values?
Because the Picker will disappear immediately when querying “OK” button to tap on, so it’s impossible to tap it.
I am working on:
- Xamarin.UITest 3.0
- iPhone's iOS 12.2
- Syncfusion 126.96.36.199
The method used to tap “OK” button: app.Tap(c => c.Text("OK"))
It's very strange because we can use Xamarin.UITest to flash "OK" button, but we cannot tap on it.
We also try another way to tap by:
- find the coordinate of OK button
- use Xamarin.UITest to TapCoordinate, but the Picker still disappear.
Thank you a lot!
We have validated your query
, While automation scripts are running ,coordinates
get tapped outside of the picker dialog window so it gets closed
automatically before the ok button is selected.
We have created a sample to solve this and please
find the sample from below link
In this sample, we have raised closed event to avoid
the picker get closed when tapping coordinates outside of the picker
dialog as like below code snippet
pickerControl.Closed += PickerControl_Closed;
Please get back us, if you have any concern.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.