wdio-vscode-service icon indicating copy to clipboard operation
wdio-vscode-service copied to clipboard

ViewItem.getActionButton/s hangs

Open badsyntax opened this issue 2 years ago • 1 comments

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>

badsyntax avatar Dec 30 '22 14:12 badsyntax

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!

christian-bromann avatar Apr 26 '23 22:04 christian-bromann