Forum Xamarin Test Cloud (Read Only)

How does property work?

JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

I've been trying to use Property queries without much luck against an Android app.

I have a custom control on my app, derived from View. It has a property exposed as a C# property of type string. If I query it from a UITest then it doesn't find it

app.Query(c => c.Class("MyClass").Property("MyProperty", "Hello!"))

This returns no results, despite the MyProperty property of the class having the C# string value of "Hello!"

Is the some magic I need to do? Do I have to wrap my properties somehow to make them appear in java land?

Best Answer

Answers

  • PubuduGayanPubuduGayan NZMember ✭✭✭

    Is it something like DependencyProperty? Not sure.

  • JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

    @PubuduGayan - apologies - my question missed one important bit. I'm using native Android, so no BindableProperties (I assume that's what you are referring to - the Forms version of DependencyProperty).

    Question updated to reflect I'm using Android.

  • PubuduGayanPubuduGayan NZMember ✭✭✭
    edited June 2016

    sorry @JimBennett i am not an expert about native android..

Sign In or Register to comment.