Search code examples
robotframework

Import library in robot framework as another name?


I wonder that how can we import library as another name in robot framework?

For example: I want to import Selenium2Library as name "SL"

So what do I need to do?


Solution

  • You should import like this

    Library    Selenium2Library    WITH NAME    SL
    

    http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#setting-custom-name-to-test-library