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?

Upvotes: 3

Views: 6395

Answers (2)

DDay
DDay

Reputation: 708

@MinhNguyen-Phuong-Hoang You could try importing each library with a different name and then specify the keyword you want with a fully qualified name.

Library    SeleniumLibrary     WITH NAME    SL
Library    Selenium2Library    WITH NAME    SL2

    SL2.Capture Screen

Upvotes: 0

Dmitriy Zverev
Dmitriy Zverev

Reputation: 369

You should import like this

Library    Selenium2Library    WITH NAME    SL

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

Upvotes: 7

Related Questions