Releases: seleniumbase/SeleniumBase
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()
Update requirements and add option to spin up extra drivers.
Update pip, setuptools, pytest, and ipdb versions.
Remove selenium 2.53.6 option for selenium 3.x.x only.
Add get_new_driver() method to spin up additional drivers for tests.
Update Chrome options; update proxy server input requirements; and add a method
Updating Chrome options for a smoother automation experience.
Expanding valid proxy server input requirements from ip:port to also include host:port
Adding method: self.get_property_value()
Update pytest version to 3.4.2
Update pytest version to 3.4.2
Update setuptools version
Update setuptools version
Fix an edge case with clicking a link hidden in a dropdown menu.
Fix an edge case with clicking a link hidden in a dropdown menu.