Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi Herman,
You need to use the WaitSwingObject method along with the Exists property. For example:
If obj.WaitSwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0, 3000).Exists Then
obj.SwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0).Click()
Else
Log.Message("The object doesn't exist")
End If
You need to use the WaitSwingObject method along with the Exists property. For example:
Set obj = Aliases.ANVA45.scherm_Formuliersoorten.TabSoort.SwingObject("PicobolTabNative", "Anva", 0).SwingObject("TabbedPane.scrollableViewport")If obj.WaitSwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0, 3000).Exists Then
obj.SwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0).Click()
Else
Log.Message("The object doesn't exist")
End If