Forum Discussion

whuang's avatar
whuang
Regular Contributor
5 years ago
Solved

How can I stay and perform actions on a webpage after switching to another browser page

Hi Support,   Sometimes I need to launch two browsers and switch back and forth between the two browsers during the test, but I am having difficulty to stay on the page and perform actions after ...
  • AlexKaras's avatar
    AlexKaras
    5 years ago

    Hi,

     

    > how can I configure this temp variable on a mapped object?

    You should use this variable to provide the value to the process name (or ObjectIdentifier) identification parameter for the Browser mapped object. The Page and all other page elements do not require any adjustments (assuming that they have the same structure for all target browsers).

    Then, during test execution, when you need to switch to another browser, you will need to assign required value to this variable (e.g. iexplore) and, optionally, call the .RefreshMappingInfo() method to make TestComplete to refresh its internal objects cache. The necessity of the latter may be verified experimentally.

     

    Does this help?