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

i want to wait till all the values in my dropdown are loaded, how can i achieve it in serenity? #2293

Closed
globalworming opened this issue Nov 6, 2020 · 6 comments
Labels

Comments

@globalworming
Copy link
Collaborator

i want to wait till all the values in my dropdown are loaded, how can i achieve it in serenity?
can anyone suggest me plz..

Originally posted by @sudhir-kunchakuri in #541 (comment)

@globalworming
Copy link
Collaborator Author

that depends @sudhir-kunchakuri

how do you know that the dropdowns are fully loaded?

@sudhir-kunchakuri
Copy link

that is what my question how can we make sure that all my values in drop down are loaded so that i can proceed further...
in my scenario: the moment i select value in dropdown certain validation will get fire on the screen, different values in drop down have different validation rules..
so thats the reason i want how can we implement that all my values in dropdown are loaded and ready to select..
please suggest..

@globalworming
Copy link
Collaborator Author

globalworming commented Nov 6, 2020

you either have to point us to an example or tell us what "fully loaded" actually means. are there loading icons? css changes? transition css classes? do you always know the expected number of values?

@sudhir-kunchakuri
Copy link

sudhir-kunchakuri commented Nov 6, 2020

example: i have customer group type dropdown which has fixed three values in it and every group type value have different set of rules or validations ... now i want the system to wait till all my 3 values are completely present in dropdown then i can make any selection so that respective validations will get fire on screen based on selected group type value...
image

@globalworming
Copy link
Collaborator Author

wait until the number of options is 3. would that help?

@globalworming
Copy link
Collaborator Author

Thing is, you need to be able to describe what "completely present" means. How can you see they are present? what differentiates it from "not present"? is there some kind of special class name that's only present on "completely present" entries?

Or would it be enough to e.g. check the options length before making a change and then wait till option lengths differs?

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

No branches or pull requests

3 participants