Incorrect behavior of pressKeyCode on Kepler Appium

Hi VegaTeam,

When running automated tests using Appium 2.2.2 and trying to move the cursor with pressKeyCode, the cursor moves continuously even though I only call it once. It looks like it’s a long press.

 await driver.pressKeyCode(108); // Down
 await driver.pause(1000);

I checked with the vega-video-sample-main app and it’s the same.
Please tell me how to fix this problem. Thank you!
Below is the environment information.
Vega SDK : 0.21.4726
Appium version : 2.2.2
Appium driver : 3.30.0

Hi @VU_VAN_TOAN

Thanks for writing. We are looking into this with our internal teams and will update you with a response ASAP.

Warm regards,
Ivy

1 Like

Hello @VU_VAN_TOAN
Are you using FireTV stick or using simulator?

Do you have the log of appium?

Hello @VU_VAN_TOAN
I have done some test and code checking.

I can reproduce the issue.

and the problem may due to the default key press time is too long.

I will make the change, and the fix shall be available in the next release.

1 Like

You may use the dpad navigation method

to inject a keycode with duration this moment as a workaround