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
(Pdb) elem = browser.find_element_by_xpath("//button[@value='Search']") | |
(Pdb) elem.click() | |
*** ElementNotVisibleException: Message: u'Element is not currently visible and so may not be interacted with' ; Stacktrace: Method WebDriverError threw an error in file:///tmp/tmpYesMjt/extensions/[email protected]/resource/modules/atoms.js | |
(Pdb) elem.size | |
{'width': 0, 'height': 0} |
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
# -*- coding: utf-8 -*- | |
""" | |
amazon_sender.py | |
~~~~~~~~ | |
Python helper class that can send emails using Amazon SES and boto. | |
The biggest feature of this class is that encodings are handled properly. | |
It can send both text and html emails. | |
This implementation is using Python's standard library (which opens up for a lot more options). |
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
Test Gist |
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
import socket | |
HOST, PORT = "localhost", 9999 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
sock.connect((HOST, PORT)) | |
sock.send("get" + "\n") |
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
import time | |
import pytest | |
def pytest_configure_node(node): | |
node.slaveinput['all_nodes'] = {'a': True, 'b': True, 'c': True} | |
node.slaveinput['used_nodes'] = {} | |
def _get_browser(request): | |
def get_browser(): | |
class Browser(object): |
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
;;; python-pep8.el --- minor mode for running `pep8' | |
;; Copyright (c) 2009, 2010 Ian Eure <[email protected]> | |
;; Author: Ian Eure <[email protected]> | |
;; Keywords: languages python | |
;; Last edit: 2010-02-12 | |
;; Version: 1.01 |
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
import win32clipboard, win32con | |
def get_pattern(): | |
text = str(eval(raw_input("Pattern:\n"))) | |
win32clipboard.OpenClipboard() | |
win32clipboard.EmptyClipboard() | |
win32clipboard.SetClipboardText(text) | |
win32clipboard.CloseClipboard() |
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
====================================================================== | |
FAIL: test_list_functions (sysmod.SysModuleTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/baiju/salt/tests/integration/modules/sysmod.py", line 17, in test_list_functions | |
self.assertTrue('pkg.install' in funcs) | |
AssertionError: False is not True | |
====================================================================== | |
FAIL: test_list_modules (sysmod.SysModuleTest) |
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 ceaeb945ee2e1c57715e3d37df0a2b6f21bba212 Mon Sep 17 00:00:00 2001 | |
From: Baiju Muthukadan <[email protected]> | |
Date: Mon, 14 May 2012 04:46:39 +0530 | |
Subject: [PATCH] Add missing import of `pyximport` | |
--- | |
salt/loader.py | 13 ++++++++++++- | |
1 file changed, 12 insertions(+), 1 deletion(-) | |
diff --git a/salt/loader.py b/salt/loader.py |
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
Exception : [Error 53] The network path was not found: '\\\\\\etc\\salt\\pki' |