Yes, I have tried that one, but in that case, the browser is not closed and then, if I force it to close, by using:
KeywordUtil.markPassed()
WebUI.closeBrowser()
I get an error, because it tries to proceed with the test and can’t find the fields to fullfill:
09-18-2018 12:29:55 PM - [START] - Start action : Statement - com.kms.katalon.core.util.KeywordUtil.markPassed()
09-18-2018 12:29:55 PM - [PASSED] -
09-18-2018 12:29:55 PM - [END] - End action : Statement - com.kms.katalon.core.util.KeywordUtil.markPassed()
09-18-2018 12:29:55 PM - [START] - Start action : closeBrowser
09-18-2018 12:29:55 PM - [INFO] - Closing browser
09-18-2018 12:29:56 PM - [PASSED] - Browser is closed
09-18-2018 12:29:56 PM - [END] - End action : closeBrowser
09-18-2018 12:29:56 PM - [END] - End action : Statement - If (com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.verifyElementVisible(com.kms.katalon.core.testobject.ObjectRepository.findTestObject(Object Repository/CDASSL_Objects/span_ErroDomnioPrincipa)))
09-18-2018 12:29:56 PM - [START] - Start action : setText
09-18-2018 12:29:56 PM - [INFO] - Finding Test Object with id ‘Object Repository/CDASSL_Objects/input_name’
09-18-2018 12:29:56 PM - [INFO] - Checking object
09-18-2018 12:29:56 PM - [INFO] - Checking text
09-18-2018 12:29:56 PM - [INFO] - Checking timeout
09-18-2018 12:29:56 PM - [WARNING] - Cannot take screenshot
09-18-2018 12:29:56 PM - [FAILED] - Unable to set text ‘Maria da Silva Guedes’ of object ‘Object Repository/CDASSL_Objects/input_name’ (Root cause: com.kms.katalon.core.webui.exception.BrowserNotOpenedException: Browser is not opened