I finally decided to switch from Selenium to Playwright and immediately ran into a problem: how to work with PageObject using Actions? Working with multiple pages was suggested a couple of posts above (inject IPage with constructor injection). (Can I please have a example?)
How to work with blocks of elements?
For example, a page has a table, or a menu with a bunch of elements that are repeated on others. A good option is to either put it in a separate class, or create base classes with a description of common entities, and already inherit partial pages from them Or are there other options?
Please sign in to leave a comment.