New version issues 7.0.4

HI team,

we have a created a customized keyword for data entering into the application.
that was working fine in previous version, but now when executing the same piece of code we are getting the below error message :
“Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘com.kms.katalon.core.webui.driver.SmartWaitWebDriver@43d65a81’ with class ‘com.kms.katalon.core.webui.driver.SmartWaitWebDriver’ to class 'org.openqa.selenium.remote.RemoteWebDriver’strong text
can you please help in getting the same resolved.
code snippet :

custPackage.DynamicData.setText(findTestObject(“XXXX”), FirstName)

custom package code :
def setText(TestObject to, String text) {
logic for setting text with respect to the application browsers.

1 Like

Hi @anuj.arora

Please share the script of your custom keyword. Possibly somewhere you casted WebDriver to RemoteWebDriver, in Katalon 7.0 onward you’d have to cast WebDriver to SmartWaitWebDriver and then call getWebDriver to get the original web driver.

1 Like

thank you that worked for me