Object not recognized in the custom keyword

Objects which are recognized in Test cases are not recognized inside the custom keyword def. Tried DriverFactory.getWebDriver() - driver.findElement and WebUiCommonHelper.findWebElement() methods. Kindly help.


It might help us help you if you include the lines of code that are failing and any errors that are generated.

The Issue is resolved. I forget to add code to switch the frame. Thanks for your reply.