this post was submitted on 29 Aug 2024
11 points (100.0% liked)
Selenium Web Browser Automation
101 readers
4 users here now
Users forum for selenium browser testing. Do not advertise here.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I question why you’re testing receiving an email, when the process of receiving an email is completely out of your control. Additionally, as you can see, testing it using selenium is problematic because you are at the behest of the mail provider whenever they change their html.
If you insist on testing receipt of an email, it might be better to connect to the incoming mail server directly (via a socket connection) and look for the email that way — this even allows you to more easily test to ensure your headers are valid. Using POP or IMAP is a much more stable solution than scraping a web page.
But, in all earnest, ensuring the sending of an email should be sufficient enough, because that is something more within your control and is actually actionable on your end.
I am well aware there are much easier (stable) means to do this but my manager has a bug bear about it. he wants it exactly as is.
I am sorry that I cannot provide an answer for your question as I am not really super familiar with it (only briefly played around with it about 5 years ago), but I will say this might be a good time to play politics. If your manager is so adamant on a clearly worse solution, you might try getting some advocates on your side with some sway to influence your manager to change their mind. It could be well respected technical coworks, or, if your bold, your managers manager. That last one I recommend caution around as people can get vindictive when you go above them.