Forum Discussion

nish_b's avatar
nish_b
Contributor
5 years ago

Exiting out of a frame using JavaScript

Hi,   I'm working on web application for GUI automation testing. The application web-page has few iFrames within which there are web-elements defined. For better performance of element identificati...
  • AlexKaras's avatar
    5 years ago

    Hi,

     

    Like Marsha wrote...

    TestComplete, unlike Selenium, does not switch to iframe and does not need to switch back. It just assesses elements as they are displayed in the Object Browser.

    E.g. (pseudocode):

    page.frame(1).button('subscribe').Click();

    Log.Message(page.Panel('subscriptionCounter').wText);

    page.frame(2).button('sendInvite').Click();

    ...