Skip to content

GitHub Action for deploying Helm charts

License

Notifications You must be signed in to change notification settings

solairen/docker_robotframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About:

  • Base Image: Python 3.14.0-slim-trixie

This docker container contains:

How to build or download:

Build docker images from Dockerfile:

  • docker build . -t {tagname}

Download from Docker repository:

  • docker pull moleszek/robotframework:latest

How to run:

To run robot framework script using robotframework Docker image directly:

  • docker run -it --rm -v {localFolderPath}:/robot moleszek/robotframework:latest -m robot {robotTest}.robot

Add headless Chromium to keywords

Inside the keywords section add:

*** Keywords ***
Chromium Headless
    ${chrome_options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
    Call Method    ${chrome_options}    add_argument    --disable-extensions
    Call Method    ${chrome_options}    add_argument    --headless
    Call Method    ${chrome_options}    add_argument    --disable-gpu
    Call Method    ${chrome_options}    add_argument    --no-sandbox
    Call Method    ${chrome_options}    add_argument    --disable-dev-shm-usage
    Evaluate    setattr($chrome_options, 'binary_location', '/usr/bin/chromium')
    ${service}=    Evaluate    sys.modules['selenium.webdriver.chrome.service'].Service(executable_path='/usr/bin/chromedriver')    sys, selenium.webdriver.chrome.service
    Create Webdriver    Chrome    options=${chrome_options}    service=${service}

This keyword allows to run Chromium in headless mode.

See example.

About

GitHub Action for deploying Helm charts

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors 2

  •  
  •