# django-selenium-helpers
**Repository Path**: touchx_admin/django-selenium-helpers
## Basic Information
- **Project Name**: django-selenium-helpers
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-11-07
- **Last Updated**: 2025-02-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
LEGACY CODE AHEAD
-----------------
*Don't use for new projects!* Use Splinter instead.
About
-----
django-selenium-helpers is a small but powerful package, inspired by a `very interesting blog post `_. It makes testing your `Django `_-powered pages with `Selenium `_, that utilize `JQuery `_ a breeze by providing a set of powerful functions to use
Code sample
-----------
.. code-block:: python
from selenium_helpers import SeleniumTestCase, wd
class MyWebPage(wd()):
def get_button(self):
return self.find_element_by_jquery("#button")
class MyTestCase(SeleniumTestCase):
def setUp(self):
self.page = MyWebPage()
self.page.open("/")
def tearDown(self):
self.page.quit()
def test_click(self):
b = self.page.get_button()
b.click()
self.assertEquals(b.visible(), True)
License
--------
This package is released under the MIT License.