MarkusBernhardt / robotframework-selenium2library-java

Java port of the Selenium 2 (WebDriver) Python library for Robot Framework
Apache License 2.0
46 stars 48 forks source link

Page Should Contain Button fails to find buttons with the button tag #43

Closed ombre42 closed 10 years ago

ombre42 commented 10 years ago

Entering on behalf of Suresh Vemuri for his post in the RF user group. If I am reading the code correctly, then the problem is that pageShouldContainButton catches an AssertionError, but Element.pageShouldContainElement throws a Selenium2LibraryNonFatalException, which is not a descendant of AssertionError. Therefore this code is not executed: element.pageShouldContainElement(locator, "button", message, logLevel);

MarkusBernhardt commented 10 years ago

Thanks for that catch. Found another spot with the same error.

MarkusBernhardt commented 10 years ago

Released with 1.4.0.1