I have an HTML like this
<div class="tox-sidebar-wrap">
<div class="tox-edit-area">
<iframe id="_tinymce-0qcgf3evlihj_ifr" frameborder="0" allowtransparency="true"
title="Rich Text Area" class="tox-edit-area__iframe">
</iframe>
</div>
</div>
Where the id of the iframe is dynamically generated. I'd like to locate it in Playwright, I think maybe I can use part of its id: _tinymce-, but not sure how to do it?
Playwright code generator gave me this:
await page.frameLocator('[id="_tinymce-0qcgf3evlihj_ifr"]').locator('#tinymce').fill('test');