From the course: Robot Framework Test Automation: Level 2
Unlock this course with a free trial
Join today to access over 22,700 courses taught by industry experts.
Create custom keyword libraries - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 2
Create custom keyword libraries
- [Instructor] So far in the Level 1, and Level 2 course, we've primarily been dealing with either built-in libraries, or some external libraries that already exist, for Robot Framework. In Robot Framework and all of its libraries, they really do a lot, so I definitely advise you that when want to solve a problem, do some Googling and look around, and make sure there's not already a library out there that does what you want to do. If for some reason you need something specific that existing libraries don't handle, you're going to need to create a custom library. You can do this using either Python or Java. I'll be showing a Python approach in this course. What you would do is you'd create a module file, and put a name on it that represents a collection of methods that do some related things. And inside that file, you're going to add one or more methods, which have underscores for spaces, and then you'll declare that library at the top of your script. And then simply call the method as…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Getting help from other Robot Framework users5m 32s
-
(Locked)
PyCharm Find Usages feature1m 14s
-
(Locked)
PyCharm TODO feature2m 56s
-
(Locked)
Advanced command-line options5m 11s
-
(Locked)
Force test execution order2m 29s
-
(Locked)
Randomize test execution order2m 50s
-
(Locked)
Get more detailed logs5m 25s
-
(Locked)
Automatic variables1m 56s
-
(Locked)
Return values from keywords2m 53s
-
(Locked)
Create custom keyword libraries4m 50s
-
-
-
-
-
-
-
-
-
-
-