Forum Discussion

Jack_meng's avatar
Jack_meng
Occasional Contributor
6 years ago
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...
  • AlexKaras's avatar
    AlexKaras
    6 years ago

    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?