2020-03-05 03:59:26 +01:00
|
|
|
*** Settings ***
|
|
|
|
Library SeleniumLibrary run_on_failure=Nothing
|
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
${URL} https://drone.dotya.ml/wanderer/docker-archlinux-cdev/
|
2020-03-10 15:33:52 +01:00
|
|
|
${BROWSER} Chrome
|
2020-03-05 03:59:26 +01:00
|
|
|
${RANDELEM} //section[@class='repo-item build-yes active-yes']
|
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
Headless Chrome - Open Browser
|
|
|
|
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
|
|
|
Call Method ${chrome_options} add_argument headless
|
|
|
|
Call Method ${chrome_options} add_argument disable-gpu
|
|
|
|
${options}= Call Method ${chrome_options} to_capabilities
|
|
|
|
|
2020-03-10 15:33:52 +01:00
|
|
|
Open Browser ${URL} browser=${BROWSER} desired_capabilities=${options}
|
2020-03-05 03:59:26 +01:00
|
|
|
|
2020-03-10 15:33:52 +01:00
|
|
|
Sleep 1
|
|
|
|
Capture Page Screenshot
|
2020-03-05 03:59:26 +01:00
|
|
|
Maximize Browser Window
|
|
|
|
Capture Page Screenshot
|
2020-03-10 15:33:52 +01:00
|
|
|
Sleep 1
|
2020-03-05 03:59:26 +01:00
|
|
|
Click Element ${RANDELEM}
|
|
|
|
Sleep 1
|
|
|
|
Capture Page Screenshot
|
|
|
|
|
|
|
|
Post-conditions
|
2020-03-10 15:33:52 +01:00
|
|
|
Log Location
|
|
|
|
Sleep 1
|
2020-03-05 03:59:26 +01:00
|
|
|
Close Browser
|