I have below scenario -
- Launch browser and do some operations
- Click on a button, a new tab opens
- switch to new tab.
- In new tab, switch to iframe and perform operations inside frame.
How can I handle this in playwright? Once I switch to new tab, all elements are inside frame, so I want to switch to new frame after switching to new tab
Note - Frame doesn't have name. I can use xpath to identify frame.
will page.frame("xpath to iframe") work?
If anyone can provide small code snippet, would be really helpful.
I Tried using page.frame("xpath locator to iframe") - but not working