1
在Repl中,我运行了一个查询“1”,它是选项卡上的当前徽章编号。Xamarin UITest找不到Repl中的iOS选项卡徽章查询
这会返回以下查询,您可以看到它具有类_UIBadgeView。
但是,当我运行_UIBadgeView的查询时,我什么也得不到。
我都尝试app.Query("_UIBadgeView");
和app.Query(c => c.Class("_UIBadgeView"));
任何想法如何,我可以访问徽章看法?
{
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
}