iOS _UIBadgeView not accessible

In the Repl I ran a query for "1" which is the current badge number on a tab
This returned the below query, which you can see has the class is _UIBadgeView.
However when I run a query for _UIBadgeView I get nothing.
I tried both app.Query("_UIBadgeView"); and app.Query(c => c.Class("_UIBadgeView"));

Any ideas how I can access the badge view?

{
Id => null,
Description => "<_UIBadgeView: 0x7e5cd380; frame = (49.5 2; 18 18); text = '1'; userInteractionEnabled = NO; layer = <CALayer: 0x7e5cceb0>>", Rect => {Width => 18, Height => 18, X => 145.5, Y => 621, CenterX => 154.5, CenterY => 630
},
Label => "1",
Text => "1",
Class => "_UIBadgeView",
Enabled => false
}

Best Answer

Answers

  • c.lamontc.lamont USUniversity ✭✭

    Thanks Glenn, this solved my problem.

    If you like could you also copy your answer to Stack Overflow?

    https://stackoverflow.com/questions/44589087/xamarin-uitest-ios-tab-badge-query-in-repl-not-found

Sign In or Register to comment.