I'm doing something like this:
await PAGE1.get_by_role("button", name="mono").nth(3).click()
await PAGE2.get_by_role("button", name="mono").nth(3).click()
I've been trying to figure out if there was a way to set up a locator, so I can just write:
mylocator = .......
await PAGE1.mylocator.click()
await PAGE2.mylocator.click()
But I can't figure out if it's even posible in python... ??