This repository has been archived on 2022-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-11 04:52:27 +02:00
|
|
|
*** Settings ***
|
|
|
|
Library SeleniumLibrary run_on_failure=Nothing
|
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
${URL} https://git.dotya.ml/
|
|
|
|
${BROWSER} chrome
|
2020-05-21 22:34:49 +02:00
|
|
|
${DELAY} 0.2
|
2020-05-11 04:52:27 +02:00
|
|
|
|
|
|
|
*** Test Cases ***
|
2020-05-11 05:21:17 +02:00
|
|
|
open page and maximize
|
2020-05-11 04:52:27 +02:00
|
|
|
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
|
|
|
Call Method ${chrome_options} add_argument headless
|
|
|
|
Call Method ${chrome_options} add_argument no-sandbox
|
|
|
|
Call Method ${chrome_options} add_argument disable-dev-shm-usage
|
|
|
|
${options}= Call Method ${chrome_options} to_capabilities
|
|
|
|
|
|
|
|
Open Browser ${URL} browser=${BROWSER} desired_capabilities=${options}
|
2020-05-21 22:27:57 +02:00
|
|
|
Set Selenium Speed ${DELAY}
|
2020-05-11 05:21:17 +02:00
|
|
|
Set Window Size 1920 1080
|
2020-05-11 04:52:27 +02:00
|
|
|
|
|
|
|
Maximize Browser Window
|
|
|
|
Capture Page Screenshot
|
|
|
|
|
|
|
|
Post-conditions
|
|
|
|
Log Location
|
|
|
|
Sleep 1
|
|
|
|
Close Browser
|