Skip to content

unable to access dynamic attributes #2309

Closed Answered by mdmintz
edenhanan asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried simplifying the selector to 'button[aria-label="פתח תפריט"]'? (That should work as a CSS Selector)

attribute = self.get_attribute('button[aria-label="פתח תפריט"]', 'aria-controls')

Or if it's already visible, you can use this to click it:

self.click('button[aria-label="פתח תפריט"]')

If it's hidden, you can use js_click() to click it:

self.js_click('button[aria-label="פתח תפריט"]')

Whenever there's a hidden menu item under a dropdown menu, use self.js_click(selector) to click it directly.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@edenhanan
Comment options

@mdmintz
Comment options

@edenhanan
Comment options

@mdmintz
Comment options

@edenhanan
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants