- Author
baiju.m.mail AT gmail.com
- Version
0.4.0
Note
$ head -1000 /etc/conf.d/xvfb* /etc/init.d/{xvfb,selenium-daemon} | |
==> /etc/conf.d/xvfb <== | |
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":90 -auth /etc/conf.d/xvfb.cfg -nolisten tcp" | |
PIDFILE=/var/run/xvfb.pid | |
==> /etc/conf.d/xvfb.cfg <== | |
localhost | |
==> /etc/init.d/xvfb <== |
baiju.m.mail AT gmail.com
0.4.0
Note
:⌉ | |
=⌉ | |
¦-) as opposed to | | |
☺ | |
☹ | |
☻ | |
⍣ | |
⍤ | |
⍥ om nom nom | |
⍨ |
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; |
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; |
# Copyright 2008-2009 WebDriver committers | |
# Copyright 2008-2009 Google Inc. | |
# | |
# 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 |
#!/bin/bash | |
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) | |
if [ -z "$GIT_DIR" ]; then | |
echo >&2 "fatal: hooks/functions: GIT_DIR not set" | |
exit 1 | |
fi | |
read oldrev newrev refname |
from selenium import webdriver | |
from time import sleep | |
d = webdriver.Chrome() | |
d.get('http://mrcoles.com/piano/') | |
sleep(2) | |
d.execute_script('document.querySelector(\'.keys\').style.width=\'791px\' ; var es = document.querySelectorAll(\'.black\') ; for (var e = 0 ; e < es.length ; ++e) { es[e].style.width = \'1px\'; }') | |
keymap = {'a': [-3, 9], 'a#': [-2, 10], 'bb': [-2, 10], 'b': [-1, 11], 'c': [-12, 0, 12], 'c#': [-11, 1], 'd': [-10, 2], 'd#': [-9, 3], 'eb': [-9, 3], 'e': [-8, 4], 'f': [-7, 5], 'f#': [-6, 6], 'g': [-5, 7], 'g#': [-4, 8]} | |
def key(letter, pos): |
# SUMMARY | |
# This gist shows a performance test between a few different variations of Selenium, | |
# running against Rsel's unit-test sinatra site (https://github.com/a-e/rsel) | |
# It repeats these steps 20 times: | |
# | |
# - Click "About this site" link | |
# - Go back to the homepage | |
# - Click "Form test" link |
# To install the Python client library: | |
# pip install -U selenium | |
# Import the Selenium 2 namespace (aka "webdriver") | |
from selenium import webdriver | |
# iPhone | |
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
# Android |