webdriverio-community / wdio-vscode-service

A service to test VSCode extensions from end to end using WebdriverIO
https://webdriverio-community.github.io/wdio-vscode-service/
MIT License
33 stars 28 forks source link

ViewItem.getActionButton/s hangs #61

Open badsyntax opened 1 year ago

badsyntax commented 1 year ago

VS Code version: 1.64.2

When using ViewItem.getActionButtons(), it just hangs, and eventually errors with:

Can't call getAttribute on element with selector ".//a[contains(@class, 'action-label') and @role='button' and @aria-label='undefined']" because element wasn't found

Here's the problem code: https://github.com/webdriverio-community/wdio-vscode-service/blob/aab1e113633e05ac2b76247d4c27faf06316baba/src/pageobjects/sidebar/ViewItem.ts#L142-L151

This is the markup for the action button:

<a class="action-label icon" role="button" title="Information" tabindex="0" style="--menu-entry-icon-light:url(&quot;vscode-file://vscode-app/Users/richardwillis/Projects/badsyntax/vscode-entity-framework/icons/help_light.svg&quot;); --menu-entry-icon-dark:url(&quot;vscode-file://vscode-app/Users/richardwillis/Projects/badsyntax/vscode-entity-framework/icons/help_dark.svg&quot;);"></a>
christian-bromann commented 1 year ago

Thanks for reporting!

Any contributions that resolves the bug are highly appreciated. Don't expect this to be picked up by active contributors as they have their own priorities. If you depend on this bug to be fixed, your contribution is required. Please take a look into our contribution guidelines or join our Discord development server and let us know if you have any questions. Cheers!