Skip to content

Commit

Permalink
feat(All): Add support for the query.All on WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Apr 21, 2020
1 parent 8cbc20d commit 4c056e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public SeleniumAppQuery(SeleniumApp seleniumApp)
=> this.seleniumApp = seleniumApp;

IAppQuery IAppQuery.All(string className)
=> Apply(() => _queryItems.Add(new SearchQueryItem($"//*[ends-with(@xamltype, '{className}')]")));
=> string.IsNullOrEmpty(className)
? Apply(() => { })
: Apply(() => _queryItems.Add(new SearchQueryItem($"//*[ends-with(@xamltype, '{className}')]")));

IAppQuery IAppQuery.Button(string marked)
=> Apply(() => _queryItems.Add(new SearchQueryItem($"//*[@xamltype='Windows.UI.Xaml.Controls.Button' and (xamlname='{marked}') or @xuid='{marked}')]")));
Expand Down

0 comments on commit 4c056e9

Please sign in to comment.