-
Notifications
You must be signed in to change notification settings - Fork 30
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
openContextMenu() times out and fails #57
Comments
@christian-bromann the issue is in
The CSS it's looking for is
...but sel1 and sel2 each end up being an empty array, which kinda confirms my suspicion that the CSS selector is stale and doesn't match the current state of VS Code. I tried to debug this & fix this myself, but when I go to inspect the contextual menu (using the element inspector in VS Code's developer tools), the context menu immediately goes away. Any tips on how to inspect the context menu and get its CSS class? |
Never tried to automate a context menu. If it is a native one with custom styles I have my doubts it is even possible. |
@christian-bromann the issue might be that the context menu is a native UI control. The menu for the Output view's context menu is having the same problem (OutputView's I noticed that the menu for the context menu for the Output view looks like a native UI control, but that the menu for the output channel selector looks different. I'm running VS Code 1.74.2. Maybe VS Code changed, and was using DOM-based menus for context menus, but are now using native UI controls? |
I am also having this issue. I was able to work around it by doing this...
Unfortunately, the |
I'm having this issue too🥲 And haven't been able to work around it 🆘 |
I'm writing a test which is automating the Explorer's tree view. I obtain the items in the view like so:
From visibleItems I then find the item/node I'm looking for (named, "
viewItem
" - which, at runtime, is a DefaultTreeItem)I then call:
...and I get the following error:
Is there a bug here, or am I going about trying to get the contextual menu wrong?
I should also point out that
...and if there's a better way to do this, please let me know.
The text was updated successfully, but these errors were encountered: