Add support for xamlautomationid
This commit is contained in:
Родитель
b3b616ef02
Коммит
2a96209a95
|
@ -110,7 +110,7 @@ namespace Uno.UITest.Selenium
|
|||
IInvokeJSAppQuery IAppQuery.InvokeJS(string javascript) => throw new System.NotImplementedException();
|
||||
|
||||
IAppQuery IAppQuery.Marked(string text)
|
||||
=> Apply(() => _queryItems.Add(new SearchQueryItem($"//*[@xamlname='{text}' or @xuid='{text}']")));
|
||||
=> Apply(() => _queryItems.Add(new SearchQueryItem($"//*[@xamlname='{text}' or @xuid='{text}' or @xamlautomationid='{text}']")));
|
||||
|
||||
IAppQuery IAppQuery.Parent(string className)
|
||||
=> Apply(() => _queryItems.Add(new SearchQueryItem($"./ancestor::*[ends-with(@xamltype, {className})]")));
|
||||
|
|
Загрузка…
Ссылка в новой задаче