1
votes

Is there a way to add a custom attribute to a toolbar button / custom toolbar button?

I'm doing some tests and I need to get those buttons by custom attributes.

Thanks

1

1 Answers

0
votes

There isn't a way at the moment, no, although it is something we've considered to make our tests easier to write.

For the moment we use the aria-label to find buttons (e.g. querySelector for button[aria-label="Remove link"]) although that does mean our tests can only run in one language.