Forum Discussion

Farinaz's avatar
Farinaz
Contributor
9 years ago

Close the pop up or change failed icon to pass

Hi; I have a keyword test which in one step must to close the windows that open in pop up but in playback could not close the pop up windows and test was failed because can not click button close in pop up window. I convert keyword test to script and change the step to : browser["Close"]()  and  browser["BrowserWindow"]["Close"](5000); but did not work. when I use Aliases["browser"]["pageRegistercredit"]["Close"](); the pop up browser was closed but result of test is failed. I want a solution to change result of test to success because in this situation exactly the test was pass but TC show the test failed. Or do you know any script to solve my issue and close pop up windows successfuly?
  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    Try recording a test where you click the Close button and see what results you get.  That should give you a clue for successfully clicking the button that will make your test pass.