Skip to content

Instantly share code, notes, and snippets.

@jeremi
jeremi / base_tests.py
Created February 9, 2012 09:47 — forked from pamelafox/base_tests.py
Python Selenium Base TestCase
import unittest
import datetime
from sys import *
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import login_dom
class BaseTests(unittest.TestCase):
@jeremi
jeremi / selenium_dom.py
Created February 9, 2012 09:51 — forked from pamelafox/selenium_dom.py
Python Selenium Dom Helper Functions
from selenium.common.exceptions import NoSuchElementException, TimeoutException
class DomHelper(object):
driver = None
waiter = None
def open_page(self, url):
self.driver.get(url)
// Let's add a new Email record
$parameters = array(
'session' => $sessionId,
'module' => 'Emails',
'name_value_list' => array(
array('name' => 'name', 'value' => 'email body'),
array('name' => 'from_addr', 'value' => '[email protected]'),
array('name' => 'to_addrs', 'value' => '[email protected]'),
array('name' => 'date_sent', 'value' => gmdate("Y-m-d H:i:s")),
array('name' => 'description', 'value' => 'This is an email created from a REST web services call'),