Skip to main content

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).

Download files

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

Source Distribution

oxtest-0.1.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file oxtest-0.1.tar.gz.

File metadata

  • Download URL: oxtest-0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for oxtest-0.1.tar.gz
Algorithm Hash digest
SHA256 dde21b0877c0ead76cbacf8d1b35dd6485a4f92663b074d0c8ae673ed1e95ffa
MD5 ebda063b5e60a796f365965c627a6e5e
BLAKE2b-256 378652edaf27c71b8d16d9453a7f792837686745eef7cc7ac8be381b028f1714

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page