Why does this work on Linux/MacOS but not Windows

So I have this piece of code in the browser:

<div class="SomethingHere" title"Some Title Here">

Which on Linux and MacOS does pass in the robot as expected with this:

Element Should Be Visible xpath=//div[@class="SomethingHere"]

But robot tests on Windows keeps failing with:

Element with locator 'xpath=//div[@class="SomethingHere"]' not found.

Anybody know why this is the case?

The element is not there on the Windows machine, that’s why, so has nothing to do with OS. The report/error message is correct, noticed it after changing to Wait Until Element Is Visible.

1 Like