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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with allControls and forceSelect #225

Closed
sebage opened this issue Apr 11, 2022 · 3 comments
Closed

Issue with allControls and forceSelect #225

sebage opened this issue Apr 11, 2022 · 3 comments
Assignees

Comments

@sebage
Copy link

sebage commented Apr 11, 2022

I am using browser.allControls in combination with forceSelect to fetch multiple instances of sap.m.CheckBox. Afterwarts i loop over the result and call press() on the selected checkboxes. This works without forceSelect, but as soon as i use forceSelect every press() in the loop is performed on the first checkbox only. The checkboxes are within a sap.m.Table in a Dialog. Using the latest RC4 version. See coding below:

   oFilterDialogCheckboxSelector: {
          forceSelect: true,
          selector: {
              controlType: "sap.m.CheckBox",
              viewName: sMasterViewName,
              properties: {
                  editable: true
              },
              searchOpenDialogs: true,
          }
    }
...
    async iDeselectAllFilters() {
        let aFilterCheckbox = await browser.allControls(oMasterSelectors.oFilterDialogCheckboxSelector);

        for ( let oCheckbox of aFilterCheckbox) {
                if (await oCheckbox.getSelected()) {
                    await oCheckbox.press();
                }            
        }
    }
@vobu
Copy link
Contributor

vobu commented Apr 11, 2022

roger that, we'll look into this later today or early tomorrow, then get back to you here

@dominikfeininger
Copy link
Collaborator

yep, you are right. Working on it: #226

@dominikfeininger dominikfeininger self-assigned this Apr 12, 2022
@vobu vobu closed this as completed in 0dd6853 Apr 12, 2022
@vobu
Copy link
Contributor

vobu commented Apr 12, 2022

FTR: successfully published [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants