Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.6 KB

File metadata and controls

29 lines (26 loc) · 1.6 KB

SeleniumLogin

Description

The example uses the Selenium library to open the Firefox web browser, access a web page and check if the login was successful.

The Python example is straight forward, just use the python command to run the file and the automation should start:

python .\examples\seleniumLogin\python\seleniumLogin.py

The Robot Framework has 3 examples:

  • example1 uses only library keywords, it is similar to the Python version as such.
    To run example1, enter the following command:
    robot -d results .\examples\seleniumLogin\robotFramework\example1\seleniumLogin.robot
  • example2 is identical with example1, but it also uses user keywords.
    To run example2, enter the following command:
    robot -d results .\examples\seleniumLogin\robotFramework\example2\seleniumLogin.robot
  • example3: is identical with example2, but the user keywords, variables and library imports are moved to their own resource file.
    To run example3, enter the following command:
    robot -d results .\examples\seleniumLogin\robotFramework\example3\seleniumLogin.robot

Note

  • To run the examples, you also need to download Firefox (Gecko) Webdriver and add it to your system path.
  • The above Robot Framework commands also generate the report files.
  • The Robot Framework examples are also optimized for the RIDE IDE.