Jack_meng
6 years agoOccasional Contributor
Solved
script hung by a popup (QT descktop application)
the scenario is my script swich a QT tab component after it switch popup a QT window, then my sctip is hung by popup, unless I manually close it, my sctipt run to next line.
Is there any way to access the pop or fire a event or somethong I can handle this?
Thanks
Hi Jack,
> tabControl.setCurrentIndex(index);
I think that .setCurrentIndex(index) is a native method provided by the tabControl. If my above guess is correct, then the application/method may behave differently when called externally from the test script.
I would suggest to try not to use control's internal method but switch to some tab via UI actions, like the human user does (i.e. using .Keys() or .Click() method (called asynchroniously)).
Does it help?