I am looking to test a webpage with a responsive layout where certain elements, like the menu, may vary based on resolution.
How can I identify and target these elements using the same test classes?
I am considering using
How.CSS, using = "a.normal-link, a#responsive-link"
Is this approach effective? Are there any other alternatives that might work better?
Additionally, is it possible to implement workaround logic for specific scenarios? For instance, if the normal login button is not visible, should we attempt to open the responsive menu and click the alternate (responsive) login link instead? I was contemplating using a try-catch block, but that doesn't seem suitable for an alternative route.
Thank you.