Update xpath in RemoveAllEntries

This commit is contained in:
Xiaofeng Wang (from Dev Box)
2025-03-14 14:38:08 +08:00
parent 77a5ef7d32
commit ceca607142

View File

@@ -291,7 +291,7 @@ namespace Hosts.UITests
foreach (var deleteBtn in this.FindAll<Button>("Delete"))
{
deleteBtn.Click();
var window = this.Find<Window>(By.XPath("//Window[contains(@Name, '.')]"));
var window = this.Find<Window>(By.XPath("//Window[not(contains(@Name, 'Editor')) and not(contains(@Name, 'Popup'))]"));
window.Find<Button>("Yes").Click();
}