خرید بک لینک

Vote count: 0

I'm writing a test using Xamarin.UITest and I want to examine the coloor of a specific UI button. From the Repl I can grab the button like this:

>>> app.Query(c => c.Button()).First()
Query for Button() gave 1 results.
{
    Id => "buttonGo",
    Description => "android.widget.Button{b312e568 VFED..C. ........ 26,234-454,314 #7f060033 app:id/buttonGo}",
    Rect => {
        Width => 428,
        Height => 80,
        X => 26,
        Y => 328,
        CenterX => 240,
        CenterY => 368
    },
    Label => null,
    Text => "Go!",
    Class => "android.widget.Button",
    Enabled => true
}

Unfortunately there doesn't seem to be any property that will give me the colour. Is there a way for me to pull more infor from the button or another way to query that I could use to find the button color?

asked 32 secs ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 10 اسفند 1394 ساعت: 15:53

صفحه بندی