-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various pressKey events are failing from testing #49
Comments
@gnarf I'm not clear on the scope of the issue. Specifically, you wrote:
Are you saying that the same errors don't happen when running tests against Chrome, and/or other test plans in Firefox and Chrome? |
Added in a line to print the exception from the deeper code:
This seems to be an error deep in executeGesture https://github.com/nvaccess/nvda/blob/f67d317304c6b139e2ee88dc86c47d58cd2d75de/source/inputCore.py#L574 I'm not sure this method for doing pressKeys is going to work for all of our uses. |
It may well be happening with chrome, and other test plans, but it is easily reproducable with firefox / alert tests. Edit: just tested, it also happens with chrome - same tests |
Based on some local testing - I think you could get this to reproduce locally by switching to focus mode with an insert+space then sending a space or enter presskey while in focus mode - I don't believe it needs any other automation bot setup/etc to test it. |
@jscholes I've been trying to figure out what the deeper cause of this issue might be, but haven't been having any luck with understanding what is going on this deep inside the NVDA code base. I'm not that familiar with python in the first place, but also the organization of what is happening in this method seems very strange. It's weird to me that space/enter seem to work fine in Browse Mode but when in Focus Mode, they both seem to be throwing this exception |
See also w3c/aria-at-app#1060 (comment) - This documents which tests are seeing errors in one of the aria-at test suites. Included a youtube capture of my VM running these tests (with the additional stack trace printing) All of the failing tests conform to either this |
@gnarf I've tried to reproduce this in the way you suggested, i.e.:
The code I used is at the end of this comment. Unfortunately I can't get NVDA (v2024.1) to throw an error in focus mode or browse mode, in Firefox or Chrome, when emulating a Space and Enter while the browse mode cursor and system focus are on the "Trigger Alert" button of the Alert Example test case. So, three questions:
Tes CodeI made a sample NVDA global plug-in, which can be dropped into the scratchpad directory under The global plug-in adds two gestures: NVDA+Control+E, and NVDA+Control+Shift+E, to emulate an Enter or Space keypress respectively, via the same mechanism used by the automation add-on. Two seconds after the gesture has been emulated, a message will be spoken indicating that either the gesture worked or failed, and in theory the exception related to a failed gesture should be logged (although I can't make this happen).
|
@gnarf Looking into NVDA itself, part of the code for
In other words, the |
It is still causing "empty output" errors when running the tests... I made a clip of my local VM running the test suite for w3c/aria-at-app#1060 (comment) - these should be pretty obvious when they are happening from the logs. This version of the tests was for tab/shift+tab and some arrow keys that aren't working, but it was the same "root" error - perhaps space and enter got fixed by something else I did but tab/shift+tab are still failing? I'm not sure |
@gnarf I can't reproduce any error emulating Tab or Shift+Tab, in browse mode or focus mode, in Chrome or Firefox. |
I reran the same suite that had these errors before, and it doesn't seem to happen anymore.... Very confusing. This error was reported on 2023.3, so I'm guessing that 2024.1 fixed that problem with tab/shift+tab and arrows for us without me knowing. Thanks for looking into it and providing some extra debugging tips for NVDA internals, it will definitely come in handy if I need to dive in on something like this one again! |
Similar to #46 - some keys are now giving an error when the bot sends the pressKey event. The error looks like this in the nvda.log:
The
error executing gesture
comes from the addon, but there doesn't seem to be any other information leading to the cause of the error.This error is currently reproduceable by running the automation harness on the alert tests with firefox - the error seems to crop up for both the "press space" and "press enter" in "Focus mode"
The text was updated successfully, but these errors were encountered: