This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install python and compiled modules for project | |
| class python { | |
| case $operatingsystem { | |
| centos: { | |
| package { | |
| ["python26-devel", "python26-libs", "python26-distribute", "python26-mod_wsgi"]: | |
| ensure => installed; | |
| } | |
| exec { "pip-install": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tching MAC address for NAT networking... | |
| [default] Clearing any previously set forwarded ports... | |
| [default] Forwarding ports... | |
| [default] -- 22 => 2222 (adapter 1) | |
| [default] -- 80 => 8000 (adapter 1) | |
| [default] Creating shared folders metadata... | |
| [default] Clearing any previously set network interfaces... | |
| [default] Preparing network interfaces based on configuration... | |
| [default] Booting VM... | |
| [default] Waiting for VM to boot. This can take a few minutes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # playdoh-specific commands that get playdoh all going so you don't | |
| # have to. | |
| # TODO: Make this rely on things that are not straight-up exec. | |
| class playdoh { | |
| file { "$PROJ_DIR/settings_local.py": | |
| ensure => file, | |
| source => "$PROJ_DIR/settings_local.py-dist", | |
| replace => false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_id": "0500adcb1f62869505e102611e000621", | |
| "_rev": "1-9b27e59258990ba40b29c0881d204ee5", | |
| "application_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", | |
| "results": [ | |
| { | |
| "passes": [ | |
| { | |
| "function": "controller.click()" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"application_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", "results": [{"passes": [{"function": "controller.click()"}, {"function": "controller.waitFor()"}, {"function": "controller.click()"}, {"function": "controller.waitFor()"}, {"function": "Controller.open()"}, {"function": "controller.waitFor()"}, {"function": "controller.waitForPageLoad()"}], "fails": [], "passed_function": "test1.js::setupModule", "name": "test1.js::setupModule", "filename": "/var/folders/k8/h9q2wfcn6yxdsm_r9_l3fg040000gn/T/tmpc7ZBqy.mozmill-tests/tests/endurance/testAddons_OpenAndCloseExtensionList/test1.js", "failed": 0, "passed": 7}, {"passes": [{"function": "controller.click()"}, {"function": "controller.waitFor()"}, {"function": "controller.waitFor()"}, {"function": "controller.waitForPageLoad()"}, {"function": "controller.click()"}, {"function": "controller.waitFor()"}, {"function": "controller.click()"}, {"function": "controller.waitFor()"}, {"function": "controller.waitFor()"}, {"function": "controller.waitForPageLoad()"}, {" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: py/selenium/webdriver/firefox/webdriver.py | |
| =================================================================== | |
| --- py/selenium/webdriver/firefox/webdriver.py (revision 17807) | |
| +++ py/selenium/webdriver/firefox/webdriver.py (working copy) | |
| @@ -33,7 +33,8 @@ | |
| # There is no native event support on Mac | |
| NATIVE_EVENTS_ALLOWED = sys.platform != "darwin" | |
| - def __init__(self, firefox_profile=None, firefox_binary=None, timeout=30): | |
| + def __init__(self, firefox_profile=None, firefox_binary=None, timeout=30, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| driver = webdriver.Firefox() | |
| driver.get("http://dev.123done.org") | |
| driver.implicitly_wait(3) | |
| driver.find_element_by_css_selector("button").click() | |
| main_window = driver.current_window_handle | |
| all_windows = driver.window_handles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: rake-tasks/crazy_fun/mappings/python.rb | |
| =================================================================== | |
| --- rake-tasks/crazy_fun/mappings/python.rb (revision 17066) | |
| +++ rake-tasks/crazy_fun/mappings/python.rb (working copy) | |
| @@ -181,7 +181,6 @@ | |
| python_dir = dest + slash + (windows? ? "Scripts" : "bin") | |
| pip_install = python_dir + slash + pip_pkg | |
| sh pip_install, :verbose => true | |
| - | |
| sh "#{python_dir}#{slash}python setup.py install", :verbose => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mozilla.seleniumgrid; | |
| import org.openqa.grid.common.RegistrationRequest; | |
| import org.openqa.grid.internal.Registry; | |
| import org.openqa.grid.internal.TestSession; | |
| import org.openqa.grid.internal.listeners.TestSessionListener; | |
| import org.openqa.grid.selenium.proxy.DefaultRemoteProxy; | |
| public class SpeedyGonzales extends DefaultRemoteProxy implements TestSessionListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: py/selenium/webdriver/common/utils.py | |
| =================================================================== | |
| --- py/selenium/webdriver/common/utils.py (revision 16878) | |
| +++ py/selenium/webdriver/common/utils.py (working copy) | |
| @@ -33,3 +33,13 @@ | |
| except socket.error: | |
| return False | |
| +def is_url_connectable(port): | |
| + import urllib2 |