TestCloud Querying Custom Properties iOS

Hi

I currently have a username and password Entry that I am able to interact with the Repl console. I would like to verify that when the user has left an entry blank that a red border is displayed. I am currently achieving this by setting the Layer.BorderColor of the custom renderer to a property in that renderer.

        [Export("getBorderColor")]
        public CGColor BorderColor
        {
            get {
                return this.Layer.BorderColor;
            }
            set {
                this.Layer.BackgroundColor = value;
            }
        }

And in my REPL console I am using the following queries:

app.Query(e => e.Id("UsernameEntry").Invoke("getBorderColor").Value<int>());

app.Query(e => e.Id("Username Entry").Property("getBorderColor").Value<int>());

Neither of these work. Is querying something like this even possible?

Sign In or Register to comment.