Giter Club home page Giter Club logo

selenium-invadelabs's Introduction

selenium-invadelabs Build Status Coverage Status

Triggered via travisci from commits to invadelabs.com repo and sends a screenshot from Selenium tests to Slack.

Spin up if testing on local

docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.14.0-arsenic
docker run -d -p 4445:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:3.14.0-arsenic

Install Firefox 54 or earlier for Selenium IDE

Selenium IDE isn't supported on Firefox >= 55 https://ftp.mozilla.org/pub/firefox/releases/54.0/linux-x86_64/en-US/firefox-54.0.tar.bz2

Download Firefox 54, create a new profile, and disable automatic updates.

tar jxvf firefox-54.0.tar.gz
./firefox-bin --ProfileManager --new-instance
Options > Preferences > Select the Advanced panel > Select the Update tab.
Check Never check for updates

Install selenium-ide extension

https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/

Use Selenium IDE in Firefox

Developer > Selenium IDE > Record

Install optipng, ruby-2.5.5, and gems

sudo apt-get install optipng
rbenv global 2.5.5
bundle install

Test Locally

Generate a screenshot from our tests with output files chrome_#{time}.png and firefox_#{time}.png then slack / and or email them.

export SENDGRID_API_KEY="my awesome key"
export SLACK_API_TOKEN="my awesome key"
ruby selenium.rb

selenium-invadelabs's People

Contributors

dependabot[bot] avatar drew-holt avatar

Watchers

 avatar  avatar

selenium-invadelabs's Issues

have firefox.rb do the same tasks as chrome.rb

chrome.rb currently

  • emails a screenshot after running selenium tests
  • send a slack message on pass / fail

firefox.rb only runs the test.

make firefox.rb more like chrome.rb and share components of code for email screenshots and slack updates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.