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

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.

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.

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

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:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.