Add support for xamlautomationid

This commit is contained in:
Jerome Laban 2019-10-15 10:17:39 -04:00
Родитель b3b616ef02
Коммит 2a96209a95
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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})]")));