-
Notifications
You must be signed in to change notification settings - Fork 4
fix: ADDON-65405 multi level menu #406
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
Conversation
ce87891
to
74e9f31
Compare
self.add_input.click() | ||
popoverid = "#" + self.add_input.get_attribute("data-test-popover-id") | ||
dropdown_selector = ( | ||
' [data-test="item"]:not([data-test-selected="true"]) [data-test="label"]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reused existing code part - :not([data-test-selected="true"]
must have been added to not allow choosing already chosen option but I don't see a reason for such behaviour. Updated code as per your suggestion for both select()
andselect_nested
methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is a menu, how it can be selected?
42862b4
to
cfd0073
Compare
🎉 This PR is included in version 2.5.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR introduces
select_nested()
method indropdown
component which enables user to operate multi-level menu for inputs by providing to method sequence of buttons that are going to be clicked in given a order.sleep() function used within
select_nested()
function to avoid issue with broken pop-up animation.