This thread is trying to answer question "How to find if a FrameLocator selects a number of FrameLocators in Playwright.Net?"
@dand33 thanks, but that works on elementhandles but not locators. It seems like I should submit a feature request. And I can get the element out of a locator using EvaluateAsync.
SO, a roundabout way to implement is to do
var element = await locator.EvaluateAsync("node => node"); Frame frame = element as Frame; return frame.ChildFrames;
Not sure you can't get what you need. Not 100% but if you call childFrames you should be able to get all the given frames. Once you get a frame, you should be able to get the attribute(s) for either the src='...' or name='...' attributes can't have a frame without the src atleast Now fix up the properties fetched and derived a locator for the given frame element...?
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email email@example.com.