Skip to content

Instantly share code, notes, and snippets.

View shoesCodeFor's full-sized avatar

Schuyler Ankele shoesCodeFor

View GitHub Profile
@shoesCodeFor
shoesCodeFor / selenium-webdriver-cheatsheet.md
Last active November 14, 2024 00:54 — forked from huangzhichong/selenium-webdriver-cheatsheet.md
Ruby Selenium Webdriver CheatSheet

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
@shoesCodeFor
shoesCodeFor / getOS.rb
Created July 20, 2018 21:08
Simple method to find host OS versioning in Ruby
#!/usr/bin/env ruby
# Ruby code snippets to determine MacOS versioning with more to come
# Inspired by AJ Acevedo's Gist: https://gist.github.com/AJ-Acevedo/5421660
##############################################################
# RbConfig to determine host OS and exit if not mac or linux #
##############################################################