我正在使用FlaUI自动化WPF应用程序。我有一个Inderminate进度条。一旦进度条得到Collapsed,UI就会被加载。我想在 ProgressBar 上实现一种机制,但我无法通过Retry
Visibility
property
FlaUI
private ProgressBar LoadingStatus => _uiAutomation.FindElement("ShowProgress", Automation.FindBy.Id).AsProgressBar();
<ProgressBar AutomationProperties.AutomationId="ShowProgress"
Grid.Row="1"
Height="4"
Margin="0"
BorderThickness="0"
IsIndeterminate="True"
IsTabStop="False"
ToolTip="Contacting Server, Please Wait..."
Visibility="{Binding IsServerActive, Converter={StaticResource MwBoolToVisibilityConverterReverse}}" />
我想实现 aRetry.While((LoadingStaus_Is_Collapsed)=> )};
但似乎我无权访问该visibility
属性。我怎样才能完成它?