简体   繁体   中英

Xamarin.UiTest querying controls without id and text

How to query Xamarin.Froms controls, which examined by repl() don't have id and text. One example is a SwitchCell with Text and On properties set in XAML. I would rather prefer a solution (if it's possible) that doesn't require editing XAML views.

app.Tap(c => c.Marked("NameOfControl"));

It also depends what controls etc. Paste what u have on Repl() or screenshot it so we can help. You didn't provide enough information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM