selenium-webdriver 4.0 not showing Exception MEssages

I have fixed the problem by updating the capybara gem to the latest version at present (3.33.0), before that, I had been testing with the version 3.10.1. After the update, the previous error has no longer happened and when I have forced an error in the test, I have recived a correct error message from Capybara:

Capybara::ExpectationNotMet: expected to find css ".detailtable" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[1]/DIV[2]/DIV[3]/DIV[1]"> at least 1 time but there were no matches

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top