I have a use case like this. Suppose if I crawl a website abc.com using scrapy playwright the page it loads are of 3 different types of pages like
page1->#selector1
page2->#selector2
page3->#selector3
and it changes dynamically there is no guarantee which loads first. I want to click on the selector based on which is loaded using scrapy-playwright.
Is there a way to do this dynamically based selector loaded?
I tried using
PageMethod("click","#selector1"),
PageMethod("click","#selector2"),
PageMethod("click","#selector3")
and this is getting timed out because at that point in time #selector2 is loaded first on the page causing the operation to fail as the first method is PageMethod("click","#selector1")