Problem selecting date in Calendar

bbb.png

Greeting, I have this problem. Is it possible to click any date from other window? Because this system navigate to other window to pick a date. When click the calendar icon(img), it will popup the calendar in new window. But the problem is when I click any date from the calendar, Katalon can only detected the calendar icon keyword which is the ‘img’. It can’t detect the specific date. Does anyone have any idea why this happen? Here are the script:

WebUI.openBrowser(’’)

WebUI.setText(findTestObject(‘New Folder/input_txtUserID’), ')

WebUI.click(findTestObject(‘New Folder/button_Login’))

WebUI.acceptAlert()

WebUI.click(findTestObject(‘New Folder/a_Administration’))

WebUI.click(findTestObject(‘SPY-WEB/a_ACCESS CONTROL’))

WebUI.delay(2)

WebUI.click(findTestObject(‘New Folder/a_User Profile’))

WebUI.delay(2)

WebUI.click(findTestObject(‘New Folder/a_KakLimah’))

WebUI.scrollToElement(findTestObject(‘New Folder/img’), 5)

WebUI.delay(2)

WebUI.switchToWindowTitle(‘INReport’)

WebUI.click(findTestObject(‘New Folder/img’))

WebUI.scrollToElement(findTestObject(‘New Folder/input_cmdSave’), 5)

WebUI.click(findTestObject(‘New Folder/input_cmdSave’))

WebUI.click(findTestObject(‘New Folder/button_Back’))

WebUI.click(findTestObject(‘SPY-WEB/a_secuser2’))

WebUI.click(findTestObject(‘New Folder/a_Sign out’))

WebUI.click(findTestObject(‘New Folder/button_Confirm’))

WebUI.closeBrowser()