Skip to content

Instantly share code, notes, and snippets.

@filipgorczynski
Created November 18, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipgorczynski/068b6f8cdcfa54d3404d0cbf7aeb94e2 to your computer and use it in GitHub Desktop.
Save filipgorczynski/068b6f8cdcfa54d3404d0cbf7aeb94e2 to your computer and use it in GitHub Desktop.
Simple example showing Robot Framework capabilities
*** Settings ***
Library SeleniumLibrary
Test Teardown Close Browser
*** Variables ***
${home_url}= https://olx.pl/
*** Keywords ***
User Opens Browser
Open Browser about:blank firefox
User Navigates To Olx Homepage
Go To ${home_url}
User Should Be Able To See Main Search Block
Wait Until Element Is Visible css:#searchmain
*** Test Cases ***
Home Page Contains Search Block
Open Browser ${home_url} firefox
Wait Until Element Is Visible css:#searchmain
Home Page Contains Search Block (BDD)
Given User Opens Browser
When User Navigates To Olx Homepage
Then User Should Be Able To See Main Search Block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment