Skip to content

Instantly share code, notes, and snippets.

View weixu8's full-sized avatar

Wei Xu weixu8

  • VMware
  • Palo Alto, CA
View GitHub Profile
# -*- Encoding: utf-8 -*-
import base64
import binascii
import cgi
import hashlib
import hmac
import logging
import time
import urllib
import urlparse
# 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