Automation 无法使用编码的UI十字线或Inspect.exe识别ImageBrush控件

Automation 无法使用编码的UI十字线或Inspect.exe识别ImageBrush控件,automation,windows-store-apps,ui-automation,coded-ui-tests,Automation,Windows Store Apps,Ui Automation,Coded Ui Tests,我正在使用编码的UI测试自动化windows 8.1应用商店应用程序。我有一个Imagebrush控件,用户图像将在服务调用时加载。问题是我无法使用编码的UI Cross-hair/Inspect.exe识别此控件,即使它提供了自动化id。但是图像控件是可以识别的 下面的XAML有两个边框元素,在第一个边框元素中我有Imagebrush控件,在下一个边框元素中我有image控件。这里我可以识别图像控件,但无法识别Imagebrush控件。我也试过手工编码,但没用 <Border Autom

我正在使用编码的UI测试自动化windows 8.1应用商店应用程序。我有一个Imagebrush控件,用户图像将在服务调用时加载。问题是我无法使用编码的UI Cross-hair/Inspect.exe识别此控件,即使它提供了自动化id。但是图像控件是可以识别的

下面的XAML有两个边框元素,在第一个边框元素中我有Imagebrush控件,在下一个边框元素中我有image控件。这里我可以识别图像控件,但无法识别Imagebrush控件。我也试过手工编码,但没用

<Border AutomationProperties.AutomationId="123" Tapped="MyProfile_Tapped">
  <Border.Background>
   <ImageBrush AutomationProperties.AutomationId="123_4" ImageSource="{Binding Profile.ProfilePhot....... />
  </Border.Background>
</Border>

<Border AutomationProperties.AutomationId="1234_5">
  <Image AutomationProperties.AutomationId="1234_6" Source="ms-appx:///Assets/Images/WatchAlbumLogo.png" />
</Border>


您是否重新确定了windows 8.1的目标?是的,它已从8.0重新确定为8.1。问题是,如果我将按钮控件或文本块保留在标识的位置。但如果是Imagebrush,则无法识别。