Hi all,
I have been experimenting in using the browser library. The application that I need to test is using nested iframes.
For my solution I wish to make use of the Set Selector Prefix keyword provided by the Browser library so that depending on the screen I’m using I can get into the right iframes. This will be called in the Test setup and in the Test case itself I’ll click on a button which is in the nested iframe.
For this keyword I have been struggling to get the right prefix.
Right now I tried the following:
Set Selector Prefix iframe[title=“Frame1title”] >>> iframe[title=“Frame2title”] >>>
The problem now however is that it converts the first iframe selection into an actual framelocator from Playwright and the second one into a normal locator which fails the tests.
If anyone could help me out how to solve this problem I greatly appreciate it :)!