Forum Discussion

Oferv's avatar
Oferv
Super Contributor
14 years ago

WaitWPFObject doesn't work

Hi,



this line doesn't work can someone tell me why please?


While(!Aliases["FusionDesktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["ContentPanel"]["PART_SelectedContentHost"]["AssemblyViewTabControl"]["Grid"]["Grid2"]["UserControl"]["ScrollableTabControlScreen"]["DockPanel"]["ContentControl"]["DocumentViewer"]["m_thumbnails"]["WaitWPFObject"]("ListBoxItem", "*", SelectedPage,1000)["Exists"])

          Aliases["FusionDesktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["ContentPanel"]["PART_SelectedContentHost"]["AssemblyViewTabControl"]["Grid"]["Grid2"]["UserControl"]["ScrollableTabControlScreen"]["DockPanel"]["ContentControl"]["DocumentViewer"]["m_thumbnails"]["ListBoxItem3"]["Keys"]("[Right]");


it display an error object expected.what object is expected?



thanks

  • Hi Ofer,



    'while' should not start with the capital 'W'.



    If this is just a misprint or result of an autocorrection, could you please post an image of the error and tell me when exactly this error is displayed? Also, please clarify what exactly value is assigned to the 'SelectedPage' variable.