-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UITest: improve SaveFileDialog view to support Win10 as well; add log…
…ging in test to get more infos
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using FlaUI.Core; | ||
using FlaUI.Core.AutomationElements; | ||
using FlaUI.Core.Definitions; | ||
|
||
namespace UITest.Writer.Views; | ||
|
||
public class SaveFileDialog(FrameworkAutomationElementBase element) : Window(element) | ||
{ | ||
public ComboBox FileName => this.Find("FileNameControlHost").AsComboBox(); | ||
|
||
public Button SaveButton => this.Find("1").AsButton(); | ||
public Button SaveButton => this.Find(x => x.ByControlType(ControlType.Button).And(x.ByAutomationId("1"))).AsButton(); | ||
|
||
public Button CancelButton => this.Find("2").AsButton(); | ||
public Button CancelButton => this.Find(x => x.ByControlType(ControlType.Button).And(x.ByAutomationId("2"))).AsButton(); | ||
} |