Releases: seleniumbase/SeleniumBase
Fix MySQL installation for Windows
Fix MySQL installation for windows. (Mainly removing the direct requirement because of issues installing mysqlclient directly, which mainly broke SeleniumBase completely when installing on Windows machines).
Add Messenger and update versions of Python libraries
Add ability to display custom messages inside the web browser during tests.
Update versions of pytest, selenium, and ipython.
Load jQuery with https instead of http.
MySQL Deploy Script and updates
For the most part, updating the MySQL functionality and adding MySQL tests inside the deploy script.
Refactor duplicate code into a single method.
Refactor duplicate code into a single method.
Small change: A had some duplicate code, so I made it into a single method.
Improve JavaScript actions
Mostly improving JavaScript actions
Add ad-blocking functionality
Add ad-blocking functionality
Usage:
On the command line:
"pytest SOME_TEST.py --ad_block"
OR
"nosetests SOME_TEST.py --ad_block"
From inside a test:
self.ad_block()
Uses AD_BLOCK_LIST from seleniumbase/config/ad_block_list.py to determine what gets blocked.
Use Python standard library methods when possible
I'm replacing an old method I wrote a long time ago called jq_format() with a Python standard library method that I probably didn't know about then, called re.escape(), which performs the same intended action.
Minor updates
Don't set a specific version for pip & setuptools
Minor updates
-
Use plain javascript instead of jQuery when highlighting elements because some websites (such as GitHub) have Content Security Policy directives that prevent loading jQuery for custom scripts.
-
If waiting for angularjs to load as part of ready state, wait less time
-
Set maximum time for activating jQuery to be settings.MINI_TIMEOUT
Adding more methods for handling webdriver actions
- self.open_new_window(switch_to=True)
- self.switch_to_window(window, timeout=settings.SMALL_TIMEOUT)
- self.switch_to_default_window()
- self.get_new_driver(browser=None, headless=None, servername=None, port=None, proxy=None, switch_to=True)
- self.switch_to_driver(driver)
- self.switch_to_default_driver()