try-except around FindElement fails (Python)
Web test
I have a form which provides different input fields based on the selected option. Not every option is available every time, but the rest of the code is more or less the same, that's why I don't want to have the same function ten times with only very small differences. So I tried:
All three try-except are executed, everytime it runs into the except-part, but only for the first one with the partname TestComplete stops because of an error? I don't understand this behaviour. I would expect to only have the log messages and executing the rest of the code. How I can avoid the interruption of the test? Why is the last log message logged, but the code after that is not executed? I would appreciate if someone could bring a bit of light into this.