Skip to content

Question: How to checkA11y in an iframe #79

@yanbxice

Description

@yanbxice

I think this would be more of a question ask than an issue report. I couldn't find answers by searching online so would like to get some help here.

I have a component inside an iframe and I need to check if there is any a11y violations for that component. Now I can get the iframe using the below code, but looks like I can't pass it in to checkA11y function as the context, because it's not the type of ElementContext. Is a11y checking supported for elements inside iframes? What should be the correct way to do it?
const iframe = await page.frame({url: xxxxxx});
await checkA11y(page, iframe, options);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions