Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 25211 [details]
XAML screenshot of the page that includes the button used for the Tap() method in the UI test.
I'm currently working with UI Testing with Xamarin UI Test. I'm currently having a problem with the Tap() method with my test, below is my current scenario.
UI TEST GOAL:
Enter phone number in the textbox and then button will be enabled once the text box is not empty and should trigger the Tap("ButtonName") method when doing the UI test.
Button uses triggers and behaviors(Data triggers to be specific) and the button's state(enabled/disabled) depends on the textbox's state whether its empty or not.
The Tap() method for the button is not triggered when running the UI test even when the textbox is already filled with data.
Is this a bug for on the UI test part?
I find it weird because the Tap() method is triggered when it is the only method in the test method. Please check the attached files for reference.
Created attachment 25212 [details]
UI Test code screenshot
What version of Forms are you running, and what platform is exhibiting the issue?
I'm using Xamarin.Forms v18.104.22.168. I'm currently testing on the Android platform.
One thing I find weird is that when I created a new xamarin forms project without using the behaviors and triggers the UI test works fine.
Xamarin team, do you already an update about the issue I posted? Hope you'll have an update soon. Thanks!
*** Bug 60074 has been marked as a duplicate of this bug. ***
Please try to avoid filing duplicate reports. If the issue still occurs on 2.4.0 stable, please provide a reproduction project we can run to help investigate this issue. Please also verify if the issue only occurs when running UI tests. When updating, it also helps to clean/rebuild the project as well as delete any bin/obj folders.
Thank you for your response, my apologies for that.
Currently I'm still stuck with the issue only during the UI test. Everything works fine when doing manual tests(e.g. QA).
I've also made a new Xamarin.Forms project with the same behavior/feature of the project I'm doing UI tests with and fortunately everything works fine during the UI test. I suspect that there is something wrong with our code or something. Still debugging the issue.
Here's a link to the sample project.
After running a few test runs I noticed that the issue is in the entertext() method since when running the UI test it enters some data into the text field and after a few seconds the "focus" goes back to the text field instead of tapping the button.
The button is working when tapped(manually, not UI test) even after running the test so I think that the problem is in text field and not the button.