Skip to content

Tag: playwright

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). But when I do the above I get: elementHandle.isDisabled: Unable to adopt element handle from a different document. Why doesn’t this work? Answer So, this works:

getAttribute is not available on the ElementHandle

I’m using playwright version 0.13.0, I have an instance of ElementHandle, but the getAttribute function is not available, calling it throws an error saying getAttribute is not a function: I double-checked with the debugger, the function is not on the instance. Also, there’s no equivalent of page.e…