This one is my code:
WebUI.openBrowser(‘’)
WebUI.navigateToUrl(‘https://masterqa.insuredhq.com/home.php’)
WebUI.click(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/a_Click here’))
WebUI.setText(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/input_Email address_username’),
‘usersupport@insuredhq.com’)
WebUI.setEncryptedText(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/input_Password_password’),
‘YjXSYnwzusPvQ4YWUCJaIqezUF6xI6Rd’)
WebUI.click(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/input_Password_login’))
WebUI.maximizeWindow()
WebUI.setText(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/input_Creditors_client’),
‘ghost’)
WebUI.click(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/button_Search’))
WebUI.click(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/i_1100_fa fa-wrench’))
WebUI.waitForElementClickable(findTestObject(‘Object Repository/Page_InsuredHQ - Your Insurance management system/i_InsuredHQ Core_fa fa-random’),
70)
String js = ‘$(“.policy_options”).click();’
WebUI.executeJavaScript(js, null)
if i am executing this code
String js = ‘$(“.policy_options”).click();’
WebUI.executeJavaScript(js, null)
I am getting 2 pop up so how can i handle this alert pop up in dynamic way? can i close this previous alert pop up ? but i can not capture close (X) button xpath in katalon studio
Please help me
Please Check screenshot