Close pop up (firefox) test case passes but pop up still remains

hi all please help with this issue I’m having. under firefox browser i’m running the following script. in my last step when click, its supposed to close pop up. In chrome this works just fine.

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser(‘staging2-web.partycity.com/’)

WebUI.switchToFrame(findTestObject(‘Page_Online Party Store with over 850 Store Locations Party City/iframe_concat(id( ext-gen45 )body1iframeclass fpw-view )_fpw-view 2’),
10, FailureHandling.STOP_ON_FAILURE)

WebUI.waitForElementVisible(findTestObject(‘Page_Online Party Store with over 850 Store Locations Party City/div_ILL PAY FULL PRICE’),
10, FailureHandling.STOP_ON_FAILURE)

WebUI.click(findTestObject(‘Page_Online Party Store with over 850 Store Locations Party City/div_ILL PAY FULL PRICE’),
FailureHandling.STOP_ON_FAILURE)

A post was merged into an existing topic: cannot close pop up window in firefox(chrome works fine)