Skip to content

press button with custom_id... #338

Answered by JU5TDIE
sus2790 asked this question in Help
Discussion options

You must be logged in to vote
for button in m.components[0].children:
    if button.label == 'Sell':
        await button.click()

Try with this. I think you're trying to press button by its name, so I fixed custom_id to label.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dolfies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants