Skip to content
Advertisement

Unable to get isDisabled() to work in Playwright

I need to check that a button is disabled (checking for a last page of a table). There are two with the same id (top and bottom of the table).

JavaScript

But when I do the above I get: elementHandle.isDisabled: Unable to adopt element handle from a different document.

Why doesn’t this work?

Advertisement

Answer

So, this works:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement