Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update splinter to 0.21.0 #787

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates splinter from 0.7.7 to 0.21.0.

Changelog

0.19.0

========

Added
-----

* The methods WebDriverElement.is_visible() and WebDriverElement.is_not_visible() are now available as a replacement for WebDriver.is_element_not_visible_by_css and WebDriver.is_element_visible_by_css.
See https://splinter.readthedocs.io/en/latest/matchers.html#checking-the-visibility-of-elements for more information.

Changed
-------

* When CookieManager.delete() is called with no arguments then all cookies are deleted. This behaviour has been deprecated. CookieManager.delete_all() should be used instead.
* The message for the error raised when a driver's class is not found has been improved.

Fixed
-----

* FlaskDriver.attach_file() has been fixed.
* urllib3 is now always installed, regardless of driver used.

0.18.1

==============================

Changed:
* Set Firefox preferences through options instead of FirefoxProfile

Fixed:
* Use dedicated logger in browser.py to avoid clobbing other Python logging
* Removed required selenium import for error handling, making it possible to use splinter without installing selenium (as long as a selenium driver isn't used)

0.18.0

Added:

* WebDriverElement() now implements the `shadow_root` property. This returns a ShadowRootElement() object to interact with the shadow root of an element.
* Failed driver imports are logged at the debug level instead of silently ignored
* `browser.html_snapshot()` now takes the optional `unique_file` argument. Setting this to False will disable the addition of random characters to the filename.

Changed:

* repr(ElementList()) now returns the repr of the internal container.
* Driver.find_link_by_<x> methods have been removed. Use Driver.links.find_by_<x>.
* Screenshot taken by WebDriverElement.screenshot() now implements Selenium's element screenshot instead of cropping a full page screenshot.
* Flask/Django's back/forward methods more accurately store browsing history
* Official Python 3.6 support has been removed

Fixed:

* 0.17.0 would report as 0.16.0. 0.18.0 reports correctly.
* When using Firefox, extensions can now be installed

0.17.0

* Added parameter to DriverAPI.screenshot and ElementAPI.screenshot to indicate if unique filename should be ensured (https://github.com/cobrateam/splinter/pull/949)
* Added Selenium 4 support

Backward incompatible changes

* Removed python 2.7 support (https://github.com/cobrateam/splinter/pull/952)
* Selenium 3 is no longer installed by default. To install Selenium 3, use the `selenium3` extra argument

0.16.0

* Pin Selenium < 4.0 (https://github.com/cobrateam/splinter/pull/930)
* Add support for Microsoft Edge (https://github.com/cobrateam/splinter/pull/912)
* Accept extra arguments for cookies (https://github.com/cobrateam/splinter/pull/895)
* Fix lxmldriver url join when form action is empty (https://github.com/cobrateam/splinter/pull/900)
* Use io.open() to fix encoding issues on some platforms (https://github.com/cobrateam/splinter/pull/904)
* allow passing options to Firefox webdriver (https://github.com/cobrateam/splinter/pull/892)

Backward incompatible changes

* Remove sending a list of cookie dicts to CookieManager.add() (https://github.com/cobrateam/splinter/pull/799)

0.15.0

* Add more input types to Webdriver clear() (https://github.com/cobrateam/splinter/pull/780)
* Standardize init of CookieManager (https://github.com/cobrateam/splinter/pull/795)
* Add delete_all method to CookieManager (https://github.com/cobrateam/splinter/pull/797)
* Warn user when cookies list is used (https://github.com/cobrateam/splinter/pull/801)
* Added retry_count to get_driver (https://github.com/cobrateam/splinter/pull/754)
* Fix full screen screenshot (https://github.com/cobrateam/splinter/pull/810)
* Add flag to ignore missing fields in fill_form (https://github.com/cobrateam/splinter/pull/821)
* Opening a link in a new tab (https://github.com/cobrateam/splinter/pull/800)

0.13.0

* Patch Remote WebDriver to add retry attempts (https://github.com/cobrateam/splinter/pull/742)
* Add driver attribute to WebDriverElement. This fixes an issue where mouse interaction fails on nested elements (https://github.com/cobrateam/splinter/pull/740)
* Fix WebDriverElement.select and .select_by_text to search only inside the parent element (https://github.com/cobrateam/splinter/pull/729)
* find_by with 0 second wait_time only checks once (https://github.com/cobrateam/splinter/pull/739)
* Fix FlaskClient redirects (https://github.com/cobrateam/splinter/pull/721)

0.12.0

==============================

* `find_by_text` now handle strings with quotation marks (https://github.com/cobrateam/splinter/issues/457)
* `find_link_by` methods are now chainable (https://github.com/cobrateam/splinter/pull/699)
* `ElementList.__getattr__()` no longer hide ElementNotFound (https://github.com/cobrateam/splinter/pull/707)
* Firefox headless mode now handle custom firefox_binary option (https://github.com/cobrateam/splinter/pull/714)
* Firefox driver now respects headless option in subsequent calls (https://github.com/cobrateam/splinter/pull/715)
* `Browser.get_alert()` returns None if no alert exists (https://github.com/cobrateam/splinter/issues/387)
* Retry WebElement.click if Exception is thrown (https://github.com/cobrateam/splinter/pull/725)
* `find_by` methods in WebDriverElement now uses retry mechanism (https://github.com/cobrateam/splinter/pull/727)
* `is_not_present/visible` returns True immediately after not finding anything (https://github.com/cobrateam/splinter/pull/732)
* Accept all valid arguments for Remote WebDriver (https://github.com/cobrateam/splinter/pull/734)
* Allow ActionChains when using Remote WebDriver (https://github.com/cobrateam/splinter/pull/738)

0.11.0

* Browser.get_alert() returns Alert instead of a wrapper object
* Add `browser.html_snapshot` method
* Allow browser.get_iframe() to accept a web element
* Fix mouse_out method
* ElementList is no longer a subclass of list
* Browser.get_alert() now waits for alert to present
* Use 'switch_to.alert' instead of deprecated 'switch_to_alert'

0.10.0

==============================

* Scroll to elements before to execute action chains
* Using `options` instead `firefox_options` to avoid warnings (https://github.com/cobrateam/splinter/pull/634)
* Add support for `*args` parameter in `execute_script` (https://github.com/cobrateam/splinter/issues/436)
* Implement `__ne__` in `StatusCode` (https://github.com/cobrateam/splinter/issues/460)
* Using the new syntax `switch_to_alert` instead `switch_to.alert` to avoid webdriver warnings.
* `CookieManager. __eq__` returns a bool value (https://github.com/cobrateam/splinter/issues/308<Paste>)
* Fix find_by_text to be used inside a chain (https://github.com/cobrateam/splinter/issues/6281)
* Add support for selenium 3.141.0

0.9.0

* `phantomjs` support was removed (https://github.com/cobrateam/splinter/issues/592)
* add options argument for chrome driver (https://github.com/cobrateam/splinter/pull/345)
* (bugfix) avoid element.find_by_text searches whole dom (https://github.com/cobrateam/splinter/issues/612)
* add suport for zope.testbrowser 5+
* handle webdriver StaleElementReferenceException (https://github.com/cobrateam/splinter/issues/541)
* add support for Flask 1+
* add support for seleniu 3.14.0
* update lxml to 4.2.4
* update cssselect to 1.0.3

0.8.0

=====================

* add support for Firefox incognito mode (https://github.com/cobrateam/splinter/pull/578)
* allow return value for `execute_script` to be returned (https://github.com/cobrateam/splinter/pull/585)
* `chrome_options` parameter renamed to `options` (https://github.com/cobrateam/splinter/pull/590)
* removed deprecated `mouseover` method
* raises `NotImplementedError` on `status_code` in drivers based on webdriver
* `phantomjs` is deprecated (this driver will be removed in 0.9.0)
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant