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>() {

		@Override
		public WebElement apply(WebDriver driver) {
			try
			{
				driver.switchTo().defaultContent();
		        driver.switchTo().frame(driver.findElement(locatorFrame));

		        WebElement elem = driver.findElement(locator);
		        
		        return elem.isDisplayed() && elem.isEnabled() ? elem : null;
			}
			
			catch(Exception e)
			{
				
				return null;
			}
		}  
			@Override
			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

Hi,

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 org.openqa.selenium.support.ui.ExpectedConditions 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.

import org.openqa.selenium.support.ui.ExpectedConditions

The jar file is distributed at Maven Central repository https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-support

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