MarketSquare / robotframework-seleniumlibrary-java

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

Including other libraries #49

Closed bfbay315 closed 6 years ago

bfbay315 commented 6 years ago

Is there a way to include other libraries such as robotframework-angularjs when using this robotframework-seleniumlibrary-java?

Hi-Fi commented 6 years ago

In general yes; if those libraries are Java based, just adding those as Maven dependency and importing to test execution. With Python libraries easiest solution might be to include the library to version control, and add location to extraPathDirectories.

One thing to note is that some libraries might not work with Jython that are written with Python, and dependency management of Python with Maven might be a bit hard. With the example it might be that those libraries are not working really together, as robotframework-angularjs is depending on SeleniumLibrary's Python version.

But in general python libraries from extraPathDirectories work fine.

bfbay315 commented 6 years ago

Thanks for the information! I was hoping for a pure gradle/java solution for managing robot, but it sounds like the dependency management might end up being problematic if I start using certain python libs.

Hi-Fi commented 6 years ago

Pure java requires pure java also for dependency sense :)

That's also partial reason why I have created/maintained some libraries with Java to simplify the things, like robotframework-httprequestlibrary and robotframework-dblibrary.