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

Fetch multiple elements ($$) #115

Closed
adrianna-u opened this issue Jan 18, 2022 · 7 comments
Closed

Fetch multiple elements ($$) #115

adrianna-u opened this issue Jan 18, 2022 · 7 comments

Comments

@adrianna-u
Copy link
Contributor

Hi,

is this possible to select multiple elements in wdi5? (Similar to wdio $$ notation and uiveri5 element.all feature)

We are using following locators in UIVeri5 and looking for a replacement

 element.all(by.control({
   controlType: 'sap.m.Title'
}))

or WDIO

get allTitles_WDIO() { return $$('.sapMTitle')}

Thanks
Adrianna

@vobu
Copy link
Contributor

vobu commented Jan 19, 2022

hi, there's no api yet for selecting all controls of a certain type in wdi5.
but i'm labelling this as enhancement/feature request - so once we can actually make a public road map (don't ask), it'll be on the dev plan

@maximnaidenov
Copy link

"I have a dream" - WDIO custom locator e.g. $ui5({selector:{}}) similar to $react(), then all other things (chaining, methods) will "just work"

@vobu
Copy link
Contributor

vobu commented Feb 17, 2022

"I have a dream" - WDIO custom locator e.g. $ui5({selector:{}}) similar to $react(), then all other things (chaining, methods) will "just work"

let's see what we can do to fulfill your dreams ☁️ 😺

@vobu
Copy link
Contributor

vobu commented Feb 17, 2022

support

  • RegEx
  • id wildcard
  • controlType

as criteria for a "select all"

eventually "all descendants/ancestors of" ?

@vobu
Copy link
Contributor

vobu commented Mar 16, 2022

just to provide an update here @adrianna-u: we've discussed different approaches and are about to prototype some.
there will for sure be an implementation until ~ end of the month (Mar 22), going into the regular 0.9.0 release

@dominikfeininger dominikfeininger self-assigned this Mar 29, 2022
@vobu
Copy link
Contributor

vobu commented Apr 8, 2022

closed via #212, documented at https://js-soft.github.io/wdi5/#/usage?id=allcontrols and (will be) part of the rc4-release!

@vobu vobu closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants