Hi, I have a scenario where there are a list of users who are active and inactive. There is a tag which let people know who are active and who are not. If I want to go the detail of the user, there is a icon which can take me there. Based on these scenarios, I have to select a active user and open it's details page.
I was wondering if there is something like, Page.locator(activeTagVariable).first().locator(detailIconLocatorVariable).click().
This is something I want to achieve, but I am failing. Is there any way to do so?
This thread is trying to answer question "Is there a way to chain locators in Playwright to select an active user and open its details page?"
https://playwright.dev/docs/locators look for chaining locators on this page 🙂
check it out here https://oholsyhevskyi.com/posts/chained-functions-in-test
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 firstname.lastname@example.org.