TestStack / White

DEPRECATED - no longer actively maintained
Other
1.02k stars 486 forks source link

Content of TabItem is not "refreshed" #273

Open luksob opened 9 years ago

luksob commented 9 years ago

Hi, The content of TabItems on the ribbon is not refreshed when tabs are dynamically loaded. The UISpy also doesn't see the content of all tabs until they are open. After selecting new tab in application and refreshing the UISpy tree, controls stored in new tab are loaded. Unfortunately, White still cannot find new items - it shows only the content of the first tab despite that other tab is selected. Please see attached screenshot from UISpy (both tabs contain buttons, but Tab2 is not refreshed):

tabs

This issue appears in Telerik controls. Is it possible to refresh the UI tree from White to reload the TabItem content?

JakeGinnivan commented 9 years ago

If you get the tab control again does it all fill out?

I suspect this is a caching issue in White

luksob commented 9 years ago

No, getting the tab control doesn't help. White sees that different tab is selected but still it gets only buttons from initially selected tab. The only thing that helps here is to select the tab in UISpy and refresh it. Then the ribbon is filled out with actual content.

bathindavarinder commented 8 years ago

I am also facing similar issue. Is there any work around ?