From 4c056e970278f5ae67f07fdc7a2cb9fbd441fa50 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 21 Apr 2020 13:42:24 -0400 Subject: [PATCH] feat(All): Add support for the query.All on WASM --- src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs b/src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs index 25876fe..21865fd 100644 --- a/src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs +++ b/src/Uno.UITest.Puppeteer/SeleniumAppQuery.cs @@ -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}')]")));