问题
I am automating a WPF app using FlaUI. I have a progressbar that is Inderminate. Once the progressbar gets Collapsed, The UI is loaded. I want to implement a Retry
mechanism on the ProgressBar Visibility
but I am not able to find the correct property
through 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}}" />
I want to implement a Retry.While((LoadingStaus_Is_Collapsed)=> )};
but seems like I don't have access to the visibility
property.
How can I get it done?
来源:https://stackoverflow.com/questions/60553908/getting-the-visibility-of-a-progress-bar-in-a-wpf-application-using-flaui-automa