From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
String - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
String
I'm not going to spend a huge amount of time on the String library because it's not exceptionally complicated to use, but clearly interacting with strings, evaluating contents, getting substrings is a pretty important part of automated testing, so you should definitely not overlook this library. Since it is a standard library, there's nothing to install. You can use the String library to generate random strings, which is often useful for doing enrollments when you can't repeat a username. You can convert your strings from uppercase to lowercase. You can fetch from the left or from the right. You can get substrings. You can split the string. You can use assertions like, should be Title Case" or "should be "Uppercase or Lowercase" or should be "Unicode." So you can use those assertions to verify that whatever text you're looking at meets the criteria specified in your requirements. The documentation for the string library is exactly where you would expect robotframework.org test…
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
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Overview1m 41s
-
(Locked)
BuiltIn: Log, verifications, repeat9m 38s
-
(Locked)
Dialogs: Pause for manual steps and data entry5m 21s
-
(Locked)
Operating system: Folders and files6m 47s
-
(Locked)
Database: MS SQL and MySQL14m 48s
-
(Locked)
API11m 41s
-
(Locked)
XML12m 2s
-
(Locked)
SeleniumLibrary3m 19s
-
(Locked)
String1m 59s
-
(Locked)
-