Forum Discussion

Stevan's avatar
Stevan
Contributor
4 years ago
Solved

How can I close an IE Tab during testing

When recording a keyword test, I click and option and it opens a PDF file to view, so once I viewed I closed out the new tab to get to my original tab. Test complete is failing on this step. How can ...
  • hkim5's avatar
    4 years ago
            
    def test11():
      Aliases.browser.Page("*", 0).Close()

    assuming that the focused control is on the browser tab that we want to close, the above code should work