How to Override methods in Katalon Studio

I am trying to create a custom method/Keyword to wait for frame and element inside the frame. In eclipse I am able to create the custom method but in Katalon, @Override is not being recognized.

Need help here !

My code below:

public class ElementClickInFrame
static WebDriver driver= new ChromeDriver();

WebDriverWait wait= new WebDriverWait(driver, 60);

public static ExpectedCondition<WebElement> clickElementInFrame(final By locatorFrame, final By locator)
	return new ExpectedCondition<WebElement>() {

		public WebElement apply(WebDriver driver) {

		        WebElement elem = driver.findElement(locator);
		        return elem.isDisplayed() && elem.isEnabled() ? elem : null;
			catch(Exception e)
				return null;
			public String toString()
				return "element located by: " + locator + " in " + locatorFrame;


In katalon the snapshot of error;

Any reply on this helpful…

what is the error saying ?
should see this when you click on override image
show us what the error is saying by hovering over this icon


Did you manage to sort out your issue?

@moenieb.davids - nope… Still getting error !

check this, it may help:

Your class refers to ExpectedConditons class. The class is included in the selenium-support-x.jar.

But the jar file is NOT bundled in Katalon Studio.

Therefore the following statement will get a compilation error.


The jar file is distributed at Maven Central repository

So it would worth trying to download the jar and locate it in the Drivers folder.

am unable to solve the above issue …can anyone help me