Skip to content

Instantly share code, notes, and snippets.

@kevbo
kevbo / gist:135b4cab839fb8adf357
Last active November 9, 2015 22:18
virtualenv including system python directories in path
$ which virtualenv
/Users/kboers/.pyenv/shims/virtualenv
$ virtualenv --version
13.1.2
$ virtualenv --always-copy test_environment
New python executable in test_environment/bin/python2.7
Also creating executable in test_environment/bin/python
Installing setuptools, pip, wheel...done.
$ test_environment/bin/python
@kevbo
kevbo / test
Created January 11, 2017 22:08
test
tests
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from pyquery import PyQuery as pq
# Set options
options = webdriver.ChromeOptions()
options.add_argument('headless')