javascript – Selenium WebDriver, ExecuteScript: Why does the test crash?
In my Selenium tests, on a ChromeDriver, I use the “ExecuteScript” method for evaluating Javascript expressions. I have found out that the test crashes without displaying any exception message if the Javascript expression returns an object like { error: ‘…’ } (with a property named “error”), and stops crashing if there is no property named “error” in the object returned by the Javascript code. Please could you provide an explanation or a link to some Selenium documentation that explains this behaviour?
Read more here: Source link
