Skip to main content

Tools for testing with docker.

Project description

Introduction

Tools to help create dockerized tests in python.

Tips and Tricks

PhantomJS

PhantomJS is a great selenium driver. There are a few things you may want to keep in mind:

  1. Use service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any'] when creating the driver (e.g., driver =  webdriver.PhantomJS(service_args=...)). This is helpful if you are doing tests and do not have proper SSL certificates installed.
  2. Do something like driver.set_page_load_timeout(300) if you have pages which take a while.
  3. Do something like driver.maximize_window() to make sure the window is big enough to “see” the page.
  4. Make sure you have at least version 2 or things will be broken.
    • Installing can be a pain and you may have to do it manually (e.g., see this gist).

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oxtest, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size oxtest-0.1.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page