Im trying to automate Login for a website. Sometimes when i enter the serialnumber of the product and it have been used before it will tell me this serialnumber has been used before, press continue to proceed, this will refer to another button/field/xpath.
This is my problem. When this occurs i want it to press continue. If the serialnumber HAVENT been used before it will click another button/field/xpath. So the program wont crash.
To summarize it, i want python/selenium to choose one of them if one of them is present.
How can i controll this? im new to this and trying to learn.