Skip to content

Instantly share code, notes, and snippets.

View hugs's full-sized avatar
🤖
Making robots

Jason Huggins hugs

🤖
Making robots
View GitHub Profile
hello world!
print "hello world"
print "hello world"
print "hello world"
print "hello"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://southwest.com/" />
<title>Check In - SWA</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
@hugs
hugs / selenium-developer-setup.txt
Created December 31, 2008 23:07
Setup req'd for Selenium development on Ubuntu (8.04 Hardy)
# Install Java:
$ sudo apt-get install sun-java6-jdk
# Check installation:
$ java -version
# Install Maven:
$ sudo apt-get install maven2
@hugs
hugs / selenium-developer-setup-windows.txt
Created January 2, 2009 21:24
Setup req'd for Selenium development on Windows 2003
# Install cygwin and wget
* Go to http://www.cygwin.com/
* Download Cygwin, and run installer.
* During installation, under "Web", select "wget"
* After installation, add Cygwin binaries to System "Path" environment variable
(Sample: C:\cygwin\bin)
(also install 'unzip')
# Install Java:
@hugs
hugs / selenium2.py
Created February 9, 2009 10:43
Getting Started with Selenium 2.0 (WebDriver)
# Using Selenium 2 and its native Python bindings for the first time...
# On Ubuntu 8.04 and Python 2.5.2
"""
# Checkout
$ svn checkout http://selenium.googlecode.com/svn/webdriver/trunk/ webdriver
# Build the code
$ cd webdriver
$ sudo python setup.py build
from selenium import selenium
from time import sleep
import unittest
class TestSauce(unittest.TestCase):
def setUp(self):
self.selenium = selenium("localhost", \
4444, "*chrome", "http://imvu.com/")
self.selenium.start()
self.selenium.set_speed(2000)