IGNORE {RETURN KEYDOWN}

Ask general questions here.
albane
Posts: 2
Joined: Wed Aug 17, 2022 5:22 pm

IGNORE {RETURN KEYDOWN}

Post by albane » Wed Aug 17, 2022 5:53 pm

Hello how are you?

Well, I have the following problem.

The software I'm testing with ranorex, when filling in input A (field limit 3 characters), it automatically jumps to input B.

In ranorex, the generated script should just be:

mouse click
{NumPad0}{NumPad1}{NumPad3}

However, due to what I mentioned earlier, it ends up generating an unnecessary fifth action that interferes with the test sequence at the time of the actual execution.

The wrong script looks like this:

mouse click
{NumPad0}{NumPad1}{NumPad3}
{return down}

My question is, is there a way to bypass this extra capture ({Return down}) that literally wasn't made by me, but by the software I'm testing?
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: IGNORE {RETURN KEYDOWN}

Post by odklizec » Tue Aug 30, 2022 10:45 am

Hi,

After each recording session, you can (and you always should) review all recorded steps and eventually modify them. So in your case, simply remove the redundant step {return down} and replace {NumPad3 down} {NumPad3 up} with the simple {NumPad3}. Hope this helps?

Recording is a great helper, but not something one should 100% rely on ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

albane
Posts: 2
Joined: Wed Aug 17, 2022 5:22 pm

Re: IGNORE {RETURN KEYDOWN}

Post by albane » Fri Sep 02, 2022 2:21 pm

Thanks for the reply and tips Odklizec, extremely grateful.

I thought there would be some way to stop a certain key recording, but that's ok. Grateful!