I am trying to handle dynamic label names in Selenium.
Say I have:
Website 1 > Login page > Username : TextBox
Website 2 > Login page > User : TextBox
Website 3 > Login page > Login : TextBox
So there are 3 different types of login label names and obviously their textbox locator names or ids will also be different. How do I keep it generic so that the code directly focuses on the login textbox for entering username irrespective of different id or name or xpath for the textbox.
Any suggestions would be of great help.