“Switch to Frame” does not switch to the iFrame.
I have verified that iFrame element exists but it failed to Switch to the Frame.
I have a time of “35” sec.
I get following error:
switchToFrame(findTestObject(“Home Page/Reports/Administrative/PVS MAP Assignment/iFrame_PVSMAP Assignment Report iFrame”), 35)
It says Switch to frame time elapsed. It doesn’t pass/fail the step. It fails on the next step where it has to verify element exists. This element exists on the frame but Katalon doesn’t recognize it.
I put a wait for element to be present for 35 sec, it fails here after switching / not switching to iFrame.
This element is being recognized when i do a object spy and identify it. It is not being recognized in the script.
Here is the log:
2021-11-08 10:56:46.952 INFO c.k.k.c.webui.common.WebUiCommonHelper - Unable to find the element located by ‘By.xpath: //div[@id=‘tax-unit-grid-root’]/iframe[@class=‘pts-report-screen-layout’]’. Please recheck the objects properties to make sure the desired element is located.
2021-11-08 10:56:47.346 ERROR c.k.k.core.keyword.internal.KeywordMain - Unable to wait for object ‘Object Repository/Home Page/Reports/Administrative/PVS MAP Assignment/label_PVS YR’ to be present (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to wait for object ‘Object Repository/Home Page/Reports/Administrative/PVS MAP Assignment/label_PVS YR’ to be present
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)