# Sendkeys is not working in a Test Case when I call it as a function in a different Test case

**URL:** <https://forum.katalon.com/t/sendkeys-is-not-working-in-a-test-case-when-i-call-it-as-a-function-in-a-different-test-case/15237>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [December 10, 2018, 4:43pm UTC](https://forum.katalon.com/t/sendkeys-is-not-working-in-a-test-case-when-i-call-it-as-a-function-in-a-different-test-case/15237 "2018-12-10T16:43:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 11, 2018, 10:15pm UTC](https://forum.katalon.com/t/sendkeys-is-not-working-in-a-test-case-when-i-call-it-as-a-function-in-a-different-test-case/15237/4 "2018-12-11T22:15:10Z")

</div>

Make sure you have imported the Keys class:

import org.openqa.selenium.Keys as Keys

And, more importantly, make sure you read this next post – trying to figure out what you are doing from a screenshot that is inconveniently cropped right at the point of the relevant error message is not the kind of thing I normally have any patience for:

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-my-test-is-broken-nothing-works-please-help-me/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

---

_[View the full topic](https://forum.katalon.com/t/sendkeys-is-not-working-in-a-test-case-when-i-call-it-as-a-function-in-a-different-test-case/15237)._
