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


#1

Hi…
I’m seeing issue with sendkeys when I call the Test Case as a function in a different Test case. It is working fine when I execute the Test case and seeing this issue only when I call it as a function in a different Test case. Currently I’m working with Katalon 5.8.4.


#2

I think we might need a little more information. What exactly do you mean by “call a test case as a function”? Post some of your code so we can see what you’re trying to achieve.


#3

Hi…
I have called the highlighted Test case and send keys is not working in that Test case. which is working fine when I ran the Test Case individually. Please see the attached pic for error


#4

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: