Can We Have a Pop-Up Menu for Web Browser Buttons Like We Do for Links?

Can we have a menu link we have for links but for buttons? I'm trying to get a macro to click a button and I'm struggling with xpaths. There are dozens of questions in the forum about how to click a button on chrome. It would make everyone's life easier if we could just select the button we want to click from the menu, like we can with links.

@peternlewis?

The links are all collected by the web browser, so they are a bit different, but anything is possible.

What specific button are you having trouble with? If the button has a unique name, then the xpath should simply be:

//button[contains(text(),'button text')]

For example, this Basic Button Example

image

2 Likes