I am new to the Katalon studio. Having issue with Hidden iFrames on checkout page.
I have used following method to avoid this issue but still it is not resolved.
//Add to the imports section for use with “driver.switchTo().frame(0)”
import org.openqa.selenium.WebDriver as WebDriver
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
//Input the following anywhere in the body of your test case
WebUI.delay(5)
WebDriver driver = DriverFactory.getWebDriver()
driver.switchTo().frame(0)
//When finished working in the iframe switch back to default content
WebUI.switchToDefaultContent
This is the Error message I got :
Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element is not clickable at point (881, 626). Other element would receive the click:
This is my script :
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 static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
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.testng.keyword.TestNGBuiltinKeywords as TestNGKW
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 com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
//Add to the imports section for use with “driver.switchTo().frame(0)”
import org.openqa.selenium.WebDriver as WebDriver
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
WebUI.openBrowser(‘’)
WebUI.navigateToUrl(GlobalVariable.URL)
WebUI.click(findTestObject(‘Object Repository/Page_Quebecs largest distributor of electri_502989/button_Accept All’))
CustomKeywords.‘MyKeywords.B2Blogin’()
CustomKeywords.‘MyKeywords.ChangeUser’()
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_B2B Quebecs largest distributor of el_3fb5b3/a_level1’))
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_B2B Quebecs largest distributor of el_3fb5b3/a_Lighting’))
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Lighting/button_ADD TO CART’))
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Lighting/i_fe fe-shopping-cart’))
WebUI.delay(5)
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Shopping Cart/span_Delivery’))
WebUI.selectOptionByValue(findTestObject(‘Object Repository/B2B_Checkout/Page_Shopping Cart/select_shipTo’), ‘’, true)
WebUI.delay(5)
WebDriver driver = DriverFactory.getWebDriver()
driver.switchTo().frame(4)
WebUI.switchToDefaultContent()
WebUI.delay(5)
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Shopping Cart/input_checkout-btn’))
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Checkout/input_Review Order’))
WebUI.click(findTestObject(‘Object Repository/B2B_Checkout/Page_Checkout/input_Submit Order’))