Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃毇 Bug] Can not getAction for View Section when another action button is disabled #1303

Open
LareinaJi opened this issue May 11, 2024 · 0 comments
Labels
bug Something isn't working new-issue New issue which was not discussed yet

Comments

@LareinaJi
Copy link

Describe the bug

Hi, team,
I want to click the action "Refresh" in the viewSection as following pic, but section.getAction('Refresh') does not work.
the reason is another button "Collapse All" is grey(disabled) (there is no items in the view, so it's disabled), then ViewSection.getActions will never return. you can see the function getActions in the file component/sidebar/ViewSection.js

   for (const element of elements) {
            actions.push(await new ViewPanelAction(element, this).wait());
        }

viewSection_actions

Steps to reproduce

const action = await section.getAction('Refresh');
    await action.click();

Logs

TimeoutError: Waiting until element is enabled
Wait timed out after 1091ms
      at C:\Data\repo\devstudio\node_modules\selenium-webdriver\lib\webdriver.js:911:22
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Operating System

Windows 11

Visual Studio Code

1.89.1

vscode-extension-tester

8.2.0

NodeJS

18.15.0

npm

9.5.0

@LareinaJi LareinaJi added bug Something isn't working new-issue New issue which was not discussed yet labels May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new-issue New issue which was not discussed yet
Projects
Status: New
Development

No branches or pull requests

1 participant