Getting the visibility of a progress bar in a WPF application using FlaUI Automation

本小妞迷上赌 提交于 2020-03-06 06:39:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!