Closed ractoc closed 5 years ago
@Hi-Fi I kinda broke the thing with my last PR.... This should fix it.
Any idea when I can expect this fixed version?
There's separate annotation to overload methods within Java libraries. See e.g. addLocationStrategy
at https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/blob/develop/src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/BrowserManagement.java#L128
Cool, I'll drop this change then in favor of adding that one...
It would be nice if you also can add test for both old and new way-
On Tue, 30 Jul 2019 at 16:04, Mark Schrijver notifications@github.com wrote:
Closed #83 https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/pull/83.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/pull/83?email_source=notifications&email_token=AALOFBGTYPYK2VKEUNERDVTQCA36BA5CNFSM4IH36GEKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSYX7EHY#event-2519724575, or mute the thread https://github.com/notifications/unsubscribe-auth/AALOFBDXXVVJNPSR6H5EI3TQCA36BANCNFSM4IH36GEA .
turns out it is not possible to work with overloaded methods when it comes to RF. So the old, 1 parameter, method had to be removed completely.
This also means a slightly different (uglier) way of getting the locator and attribute in there to keep everything backwards compatible.
The only way to get around using this uglier way is to break backwards compatibility though so this would seem the lesser of two evils for now.