How to trigger a "Command" binding inside a Property.Element syntax in Xamarin Forms UI Test

LanzBahintingLanzBahinting ✭✭USMember ✭✭

This is my first time doing this stuff so please bare with me.

I'm trying to do a Xamarin Forms UI Test. Currently I'm stuck with how to trigger a "Command" inside a Property.Element syntax via the app.Tap() method in Xamarin Forms UI Test. Please refer to the image attached.

The UI test runs but it doesn't trigger the app.Tap() method to press the button.

Any ideas or work around with this one?

Tagged:

Posts

  • DirkWilhelmDirkWilhelm ✭✭✭✭ USMember ✭✭✭✭

    I can't help you with your original problem, but why are you using an EventToCommandBehavior on a button?

    Button has already a command property.

  • LanzBahintingLanzBahinting ✭✭ USMember ✭✭

    @DirkWilhelm This is work related stuff. This was coded by a colleague of mine, I'm just doing UI tests for it.

  • LanzBahintingLanzBahinting ✭✭ USMember ✭✭

    A follow up question. When using behaviors and triggers in Xamarin Forms does it need to be in sequence I mean like the triggers are invoked first and then the behaviors?

Sign In or Register to comment.