Skip to content

Instantly share code, notes, and snippets.

View ckenst's full-sized avatar

Chris Kenst ckenst

View GitHub Profile
@santiycr
santiycr / TestingUploadSe2Sauce.java
Created December 22, 2011 04:44
Remote File Upload using Selenium 2's FileDetectors
import junit.framework.Assert;
import junit.framework.TestCase;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.*;
import java.net.URL;
import java.util.concurrent.TimeUnit;
public class TestingUploadSe2Sauce extends TestCase {
private RemoteWebDriver driver;
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@mkaz
mkaz / web_timing.py
Created July 4, 2012 14:55
Use Selenium to Measure Web Timing
#!/usr/bin/env python
"""
Use Selenium to Measure Web Timing
Performance Timing Events flow
navigationStart -> redirectStart -> redirectEnd -> fetchStart -> domainLookupStart -> domainLookupEnd
-> connectStart -> connectEnd -> requestStart -> responseStart -> responseEnd
-> domLoading -> domInteractive -> domContentLoaded -> domComplete -> loadEventStart -> loadEventEnd
@huangzhichong
huangzhichong / selenium-webdriver-cheatsheet.md
Created August 7, 2012 12:38
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
    
  • Go to a specified URL
# pages/top-nav-widget.rb
module PageObject
module TopNavWidget
FORK_LINK = { css: 'img' }
end
end
# pages/login-page.rb
module PageObject
class LoginPage
@tourdedave
tourdedave / Gemfile
Last active August 29, 2015 14:21
Responsive Layout Testing
source 'https://rubygems.org'
gem 'selenium-webdriver', '~> 2.45.0'
gem 'eyes_selenium', '~> 2.15.0'
gem 'rspec', '~> 3.2.0'
gem 'rake', '~> 10.4.2'
@MaikNog
MaikNog / gist:06654dd92dd71984ff6bee6469c8eb80
Created May 21, 2020 17:34
STWC (Software Testing World Cup) - Blog posts from participants
For Europe (in Russian):
http://rinauzhevko.blogspot.ru/2014/06/software-testing-world-cup-2014.html
####TEAM####
http://dnlkntt.wordpress.com/2014/06/14/short-summary-about-the-software-testing-world-cup-2014-europe-competition/
http://about98percentdone.blogspot.com/2014/05/software-test-world-cup-2014-part-1.html
http://about98percentdone.blogspot.de/2014/05/software-test-world-cup-2014-part-2.html
http://www.rajsubra.com/2014/05/09/our-software-testing-world-cup-2014-story-the-four-musketeers/
http://isitgoodenoughyet.com/2014/05/17/judging-the-software-testing-world-cup-oceania-2014/
http://www.iteststuff.ca/2014/05/reflecting-on-my-software-testing-world.html
@ekager
ekager / bad_place_notify.py
Last active October 28, 2022 08:18
Searches for specified search terms and sends emails if found
"""
This script will search 4chan (need to specify a board unfortunately) and then
search all comments on Reddit for specific keywords. If found, it will then send
an email with the links to any matching posts.
Because 4chan posts are archived after ~48 hours I would recommend setting this up
to run on that cadence as well.
Sender email will need "Allow less secure apps" to ON or similar setting.
I followed these instructions for setting that up: