Skip to content

Instantly share code, notes, and snippets.

@bobsilverberg
bobsilverberg / ServerRuleValidator_CollectionSize.cfc
Created November 24, 2011 22:11
The CollectionSize ServerRuleValidator
<!---
Copyright 2010, Bob Silverberg, Adam Drew
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
@bobsilverberg
bobsilverberg / gist:2413642
Created April 18, 2012 13:44
Test case for css selector bug
<html>
<head>
<title>Select css selector bug</title>
</head>
<body>
<form name="test">
<select name="multi" id="multi" multiple="multiple">
<option selected="selected" value="eggs">Eggs</option>
<option value="ham">Ham</option>
<option selected="selected" value="sausages">Sausages</option>
@bobsilverberg
bobsilverberg / rgba_test.html
Created April 24, 2012 20:13
Test to observe how browsers report colors
<!DOCTYPE html>
<html>
<head>
<title>rgba_test.html</title>
<script src="test_bootstrap.js"></script>
<script type="text/javascript">
goog.require('bot.dom');
goog.require('bot.locators');
goog.require('goog.testing.jsunit');
</script>
@bobsilverberg
bobsilverberg / Gemfile
Created May 3, 2012 13:01 — forked from jarib/Gemfile
Boolean attributes by tag name
source :rubygems
gem "webidl"
gem "nokogiri"
gem "activesupport"
gem "watir-webdriver", :git => "git://github.com/watir/watir-webdriver"
@bobsilverberg
bobsilverberg / Console messages from IntelliJ
Created June 5, 2012 13:41
Messages when trying to run a Selenium JUnit test
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7542 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 11.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 11.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 11.app/plugins/junit/lib/junit-rt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Content
/*
Copyright 2007-2009 Selenium committers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@bobsilverberg
bobsilverberg / gist:2875604
Created June 5, 2012 15:16
Firefox error console for Selenium problem
LOG addons.xpi: startup
LOG addons.xpi: Skipping unavailable install location app-system-share
LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /var/folders/dr/rp7flwrx4rxd_swwbgbc4p9m0000gn/T/anonymous8637837187815157421webdriver-profile/extensions/webdriver-staging
LOG addons.xpi: checkForChanges
LOG addons.xpi: No changes found
@bobsilverberg
bobsilverberg / TEST--javascript-atoms-test_opera.txt
Created June 14, 2012 14:47
Error running Selenium tests on Opera
Testsuite: org.openqa.selenium.javascript.ClosureTestSuite
Tests run: 9, Failures: 0, Errors: 1, Time elapsed: 71.018 sec
------------- Standard Error -----------------
2012-06-14 10:49:09.522:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2012-06-14 10:49:09.886:INFO:osjsh.ContextHandler:started o.s.j.w.WebAppContext{/common,file:/Users/robertsilverberg/Documents/gitRepos/Selenium/common/src/web/},/Users/robertsilverberg/Documents/gitRepos/Selenium/./common/src/web
2012-06-14 10:49:09.944:INFO:osjsh.ContextHandler:started o.s.j.w.WebAppContext{/javascript,file:/Users/robertsilverberg/Documents/gitRepos/Selenium/javascript/},/Users/robertsilverberg/Documents/gitRepos/Selenium/./javascript
2012-06-14 10:49:09.968:INFO:osjsh.ContextHandler:started o.s.j.w.WebAppContext{/third_party/closure/goog,file:/Users/robertsilverberg/Documents/gitRepos/Selenium/third_party/closure/goog/},/Users/robertsilverberg/Documents/gitRepos/Selenium/./third_party/closure/goog
2012-06-14 10:49:09.996:INFO:osjs.AbstractConnector:Started Select
[pytest]
addopts = --driver=firefox --credentials=mine/credentials.yaml --destructive
<!doctype html>
<html class="windows no-js" lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mozilla — Get to Know Mozilla — mozilla.org</title>
<link href="/tabzilla/media/css/tabzilla.css" rel="stylesheet">