I have automated tests that until the 27th of August worked flawlessly. my testcase goes to outlook web and confirms the receipt of an email. I am now stumbling over the login process. I am able to find the loginbutton but my selenium code fails to find the input fields.

i tried modifying the selection strategy but that made no difference.

I ran some basic javascript queries in the dev console but as best as i can tell the input field is visible, clickable and on top.

Does anybody have any idea what might be the issue?

  • dohpaz42@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    21 days ago

    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.

    • bukkist@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      21 days ago

      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.

      • Themadbeagle@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        21 days ago

        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.