Run your Selenium TestCase's in multiple browsers
Project description
simple-nose-selenium
*************
A simple Selenium WebDriver plugin for nose.
This plugin is a python3 only stripped down version of `nose-selenium <https://github.com/klrmn/nose-selenium>`_.
nosetests command line options
==============================
.. code-block:: bash
$ nosetests --with-simple-nose-selenium --help
Usage: nosetests [options]
Options:
...
--with-simple-nose-selenium Enable plugin Simple Nose Selenium
--browser=BROWSER Run this type of browser (default ['FIREFOX'], options
for local [FIREFOX, CHROME]
Example Commands
----------------
.. code-block:: bash
$ nosetests --with-simple-nose-selenium --browser=FIREFOX
Inheriting from SeleniumTestCase
--------------------------------
SeleniumTestCase creates the webdriver and stores it in self.wd in its setUp()
and closes it in tearDown().
.. code-block:: python
from nose_selenium import SeleniumTestCase
class MyTestCase(SeleniumTestCase):
def test_that_google_opens(self):
self.wd.get("http://google.com")
self.assertEqual(self.wd.title, "Google")
*************
A simple Selenium WebDriver plugin for nose.
This plugin is a python3 only stripped down version of `nose-selenium <https://github.com/klrmn/nose-selenium>`_.
nosetests command line options
==============================
.. code-block:: bash
$ nosetests --with-simple-nose-selenium --help
Usage: nosetests [options]
Options:
...
--with-simple-nose-selenium Enable plugin Simple Nose Selenium
--browser=BROWSER Run this type of browser (default ['FIREFOX'], options
for local [FIREFOX, CHROME]
Example Commands
----------------
.. code-block:: bash
$ nosetests --with-simple-nose-selenium --browser=FIREFOX
Inheriting from SeleniumTestCase
--------------------------------
SeleniumTestCase creates the webdriver and stores it in self.wd in its setUp()
and closes it in tearDown().
.. code-block:: python
from nose_selenium import SeleniumTestCase
class MyTestCase(SeleniumTestCase):
def test_that_google_opens(self):
self.wd.get("http://google.com")
self.assertEqual(self.wd.title, "Google")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for simple-nose-selenium-0.01.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d2d93ad81e60c3e2f874d2d5d33d91120e59284dd28ee7460a1f4afd354d749 |
|
MD5 | c7b640dc02c04666b33b3ae4c66bcdf3 |
|
BLAKE2b-256 | b1caa21a4fe44b39f6e07b9dd550e8131331702a8fedbc5dd244bacbac1513a9 |