MarketSquare / robotframework-seleniumlibrary-java

Java port of the Python based SeleniumLibrary for Robot Framework
Apache License 2.0
23 stars 16 forks source link

Added setFocusToElement to replace the Focus keyword #78

Closed ractoc closed 5 years ago

ractoc commented 5 years ago

Added the new Set Focus To Element keyword which replaces the Focus keyword. For backwards compatibility, the old Focus keyword has been left in there but has been marked as deprecated.

Also added the companion keyword Element Should Be Focused to detect if a given element has focus.

This PR doesn not need an immediate release.

ractoc commented 5 years ago

Added the new version of Get Element Attribute. This new version takes 2 parameters, one for hte locator and one for the actual attribute. I kept the old method, which is now almost empty and just forwards to the new method. I also marked the old method as deprecated.

This new method is something we do need sooner rather then later as it is required to make our code work both on Python and on Java with the same script.

ractoc commented 5 years ago

For some reason, Travis is failing. This just happens on the FireFox profile. The error I see is: Element