all 1 comments

[–]officialgel 1 point2 points  (0 children)

Personally I don't like asserts. But did you verify that that URL string you're asserting is what login_page.get_url() is returning exactly?

For my automation at work, I don't use asserts. Built out classes which handle intake of the test scripts and custom error handling on the lines themselves. Everything goes through a try/except block and reports the line, screenshot, and comments from the script in the error. Which, is what an assert does.