Skip to content

Instantly share code, notes, and snippets.

View illicitonion's full-sized avatar

Daniel Wagner-Hall illicitonion

View GitHub Profile
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ svn info
Path: .
URL: https://selenium.googlecode.com/svn/trunk
Repository Root: https://selenium.googlecode.com/svn
Repository UUID: 07704840-8298-11de-bf8c-fd130f914ac9
Revision: 14046
Node Kind: directory
Schedule: normal
Last Changed Author: dawagner
Last Changed Rev: 14046
Testcase: testSaveScreenshotAsFile took 0.018 sec
Caused an ERROR
Could not take screenshot of current page - TypeError: documentElement is null; duration or timeout: 14 milliseconds
Build info: version: '2.8.0', revision: '14046', time: '2011-10-06 10:15:10'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-gg508-generic', java.version: '1.6.0-google-v4'
Driver info: driver.version: FirefoxDriver
org.openqa.selenium.WebDriverException: Could not take screenshot of current page - TypeError: documentElement is null; duration or timeout: 14 milliseconds
Build info: version: '2.8.0', revision: '14046', time: '2011-10-06 10:15:10'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-gg508-generic', java.version: '1.6.0-google-v4'
Driver info: driver.version: FirefoxDriver
Testcase: testShouldBeAbleToOverrideTheWindowAlertMethod took 202.331 sec
Caused an ERROR
org.apache.http.NoHttpResponseException: The target server failed to respond
Build info: version: '2.8.0', revision: '14081', time: '2011-10-07 12:07:03'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', java.version: '1.6.0_26'
Driver info: driver.version: RemoteWebDriver
org.openqa.selenium.WebDriverException: org.apache.http.NoHttpResponseException: The target server failed to respond
Build info: version: '2.8.0', revision: '14081', time: '2011-10-07 12:07:03'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', java.version: '1.6.0_26'
Driver info: driver.version: RemoteWebDriver
@illicitonion
illicitonion / gist:1271421
Created October 7, 2011 21:46
Quick proof of concept: Magic dynamic proxies for magic asserts
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Reflection;
using Microsoft.CSharp.RuntimeBinder;
using NUnit.Framework;
namespace MagicDynamicTests
{
[TestFixture]
import random
from multiprocessing import Pool
from time import sleep
def Process(x):
try:
print str(x)
sleep(random.random())
raise Exception('Foo: ' + str(x))
import random
from multiprocessing import Pool
from time import sleep
def Process(x):
try:
print x
sleep(random.random())
raise Exception('Exception: ' + x)
danielwh-macbookpro:~ danielwh$ dig www.theospears.com
; <<>> DiG 9.6-ESV-R4-P3 <<>> www.theospears.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46527
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.theospears.com. IN A
@illicitonion
illicitonion / gist:1295551
Created October 18, 2011 14:27
Turn off javascript atoms optimisations
Index: rake-tasks/crazy_fun/mappings/javascript.rb
===================================================================
--- rake-tasks/crazy_fun/mappings/javascript.rb (revision 14194)
+++ rake-tasks/crazy_fun/mappings/javascript.rb (working copy)
@@ -334,7 +334,7 @@
"-f \"--third_party=true\" " <<
"-f \"--js_output_file=#{output}\" " <<
"-f \"--output_wrapper='#{wrapper}'\" " <<
- "-f \"--compilation_level=ADVANCED_OPTIMIZATIONS\" " <<
+ "-f \"--compilation_level=PRETTY_PRINT\" " <<
@illicitonion
illicitonion / gist:1318309
Created October 26, 2011 23:17
Scrolling
Index: javascript/atoms/test/scrolling_test.html
===================================================================
--- javascript/atoms/test/scrolling_test.html (revision 0)
+++ javascript/atoms/test/scrolling_test.html (revision 0)
@@ -0,0 +1,130 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <title>scrolling_test.html</title>
+ <script src="test_bootstrap.js"></script>
INFO: Executing: [f2d88a57-b9ac-4961-8588-73c8de3c529c, findElement {"using":"id","value":"go"}]
Nov 7, 2011 3:12:31 PM org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Response: (f2d88a57-b9ac-4961-8588-73c8de3c529c 0: org.openqa.selenium.firefox.FirefoxWebElement@4202bb94). Took 4 milliseconds to execute.