Hello community, here is the log from the commit of package python-selenium for openSUSE:Factory checked in at 2018-02-14 09:44:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-selenium (Old) and /work/SRC/openSUSE:Factory/.python-selenium.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-selenium" Wed Feb 14 09:44:35 2018 rev:4 rq:575265 version:3.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-selenium/python-selenium.changes 2018-01-24 15:32:26.312934687 +0100 +++ /work/SRC/openSUSE:Factory/.python-selenium.new/python-selenium.changes 2018-02-14 09:44:50.154654217 +0100 @@ -1,0 +2,10 @@ +Tue Feb 6 22:36:53 UTC 2018 - [email protected] + +- update to version 3.9.0: + * Add docstrings to WebElement find methods (#5384) + * Additional data in unexpected alert error is now handled for w3c + drivers (#5416) + * Allow service_args to be passed into Firefox WebDriver (#5421) + * Fix bug introduced with response logging in 3.8.1 (#5362) + +------------------------------------------------------------------- Old: ---- selenium-3.8.1.tar.gz New: ---- selenium-3.9.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-selenium.spec ++++++ --- /var/tmp/diff_new_pack.GGXW8E/_old 2018-02-14 09:44:55.350464849 +0100 +++ /var/tmp/diff_new_pack.GGXW8E/_new 2018-02-14 09:44:55.354464703 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-selenium -Version: 3.8.1 +Version: 3.9.0 Release: 0 Summary: Python bindings for Selenium License: Apache-2.0 ++++++ selenium-3.8.1.tar.gz -> selenium-3.9.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/CHANGES new/selenium-3.9.0/CHANGES --- old/selenium-3.8.1/CHANGES 2018-01-04 16:00:40.000000000 +0100 +++ new/selenium-3.9.0/CHANGES 2018-02-05 21:46:36.000000000 +0100 @@ -1,3 +1,10 @@ +Selenium 3.9.0 + +* Add docstrings to WebElement find methods (#5384) +* Additional data in unexpected alert error is now handled for w3c drivers (#5416) +* Allow service_args to be passed into Firefox WebDriver (#5421) +* Fix bug introduced with response logging in 3.8.1 (#5362) + Selenium 3.8.1 * Fix bug when creating an Opera driver (#5266) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/PKG-INFO new/selenium-3.9.0/PKG-INFO --- old/selenium-3.8.1/PKG-INFO 2018-01-04 20:12:31.000000000 +0100 +++ new/selenium-3.9.0/PKG-INFO 2018-02-05 21:50:58.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: selenium -Version: 3.8.1 +Version: 3.9.0 Summary: Python bindings for Selenium Home-page: https://github.com/SeleniumHQ/selenium/ Author: UNKNOWN @@ -44,7 +44,7 @@ pip install -U selenium - Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.8.0.tar.gz), unarchive it, and run:: + Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.9.0.tar.gz), unarchive it, and run:: python setup.py install @@ -136,11 +136,11 @@ However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server. The server requires a Java Runtime Environment (JRE). - Download the server separately, from: http://selenium-release.storage.googleapis.com/3.8/selenium-server-standalone-3.8.0.jar + Download the server separately, from: http://selenium-release.storage.googleapis.com/3.9/selenium-server-standalone-3.9.0.jar Run the server from the command line:: - java -jar selenium-server-standalone-3.8.0.jar + java -jar selenium-server-standalone-3.9.0.jar Then run your Python client scripts. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/README.rst new/selenium-3.9.0/README.rst --- old/selenium-3.8.1/README.rst 2017-12-08 05:51:14.000000000 +0100 +++ new/selenium-3.9.0/README.rst 2018-02-05 21:40:41.000000000 +0100 @@ -35,7 +35,7 @@ pip install -U selenium -Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.8.0.tar.gz), unarchive it, and run:: +Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.9.0.tar.gz), unarchive it, and run:: python setup.py install @@ -127,11 +127,11 @@ However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server. The server requires a Java Runtime Environment (JRE). -Download the server separately, from: http://selenium-release.storage.googleapis.com/3.8/selenium-server-standalone-3.8.0.jar +Download the server separately, from: http://selenium-release.storage.googleapis.com/3.9/selenium-server-standalone-3.9.0.jar Run the server from the command line:: - java -jar selenium-server-standalone-3.8.0.jar + java -jar selenium-server-standalone-3.9.0.jar Then run your Python client scripts. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/__init__.py new/selenium-3.9.0/selenium/__init__.py --- old/selenium-3.8.1/selenium/__init__.py 2018-01-04 16:01:08.000000000 +0100 +++ new/selenium-3.9.0/selenium/__init__.py 2018-02-05 21:40:41.000000000 +0100 @@ -16,4 +16,4 @@ # under the License. -__version__ = "3.8.1" +__version__ = "3.9.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/webdriver/__init__.py new/selenium-3.9.0/selenium/webdriver/__init__.py --- old/selenium-3.8.1/selenium/webdriver/__init__.py 2018-01-04 16:01:08.000000000 +0100 +++ new/selenium-3.9.0/selenium/webdriver/__init__.py 2018-02-05 21:47:46.000000000 +0100 @@ -35,4 +35,4 @@ from .common.touch_actions import TouchActions # noqa from .common.proxy import Proxy # noqa -__version__ = '3.8.1' +__version__ = '3.9.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/webdriver/firefox/webdriver.py new/selenium-3.9.0/selenium/webdriver/firefox/webdriver.py --- old/selenium-3.8.1/selenium/webdriver/firefox/webdriver.py 2017-11-09 19:11:57.000000000 +0100 +++ new/selenium-3.9.0/selenium/webdriver/firefox/webdriver.py 2018-02-05 21:40:41.000000000 +0100 @@ -56,7 +56,8 @@ def __init__(self, firefox_profile=None, firefox_binary=None, timeout=30, capabilities=None, proxy=None, executable_path="geckodriver", options=None, - log_path="geckodriver.log", firefox_options=None): + log_path="geckodriver.log", firefox_options=None, + service_args=None): """Starts a new local session of Firefox. Based on the combination and specificity of the various keyword @@ -144,7 +145,10 @@ if capabilities.get("marionette"): capabilities.pop("marionette") - self.service = Service(executable_path, log_path=log_path) + self.service = Service( + executable_path, + service_args=service_args, + log_path=log_path) self.service.start() capabilities.update(options.to_capabilities()) Binary files old/selenium-3.8.1/selenium/webdriver/firefox/webdriver.xpi and new/selenium-3.9.0/selenium/webdriver/firefox/webdriver.xpi differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/webdriver/remote/errorhandler.py new/selenium-3.9.0/selenium/webdriver/remote/errorhandler.py --- old/selenium-3.8.1/selenium/webdriver/remote/errorhandler.py 2017-11-09 19:11:57.000000000 +0100 +++ new/selenium-3.9.0/selenium/webdriver/remote/errorhandler.py 2018-02-05 21:40:41.000000000 +0100 @@ -232,8 +232,13 @@ pass if exception_class == ErrorInResponseException: raise exception_class(response, message) - elif exception_class == UnexpectedAlertPresentException and 'alert' in value: - raise exception_class(message, screen, stacktrace, value['alert'].get('text')) + elif exception_class == UnexpectedAlertPresentException: + alert_text = None + if 'data' in value: + alert_text = value['data'].get('text') + elif 'alert' in value: + alert_text = value['alert'].get('text') + raise exception_class(message, screen, stacktrace, alert_text) raise exception_class(message, screen, stacktrace) def _value_or_default(self, obj, key, default): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/webdriver/remote/remote_connection.py new/selenium-3.9.0/selenium/webdriver/remote/remote_connection.py --- old/selenium-3.8.1/selenium/webdriver/remote/remote_connection.py 2017-12-21 03:04:38.000000000 +0100 +++ new/selenium-3.9.0/selenium/webdriver/remote/remote_connection.py 2018-02-05 21:40:41.000000000 +0100 @@ -564,5 +564,5 @@ data = {'status': 0, 'value': body.strip()} return data finally: - LOGGER.debug(u"Finished Request {}".format(data)) + LOGGER.debug("Finished Request") resp.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium/webdriver/remote/webelement.py new/selenium-3.9.0/selenium/webdriver/remote/webelement.py --- old/selenium-3.8.1/selenium/webdriver/remote/webelement.py 2017-12-08 05:51:14.000000000 +0100 +++ new/selenium-3.9.0/selenium/webdriver/remote/webelement.py 2018-02-05 21:40:41.000000000 +0100 @@ -628,6 +628,14 @@ return self._parent.execute(command, params) def find_element(self, by=By.ID, value=None): + """ + 'Private' method used by the find_element_by_* methods. + + :Usage: + Use the corresponding find_element_by_* instead of this. + + :rtype: WebElement + """ if self._w3c: if by == By.ID: by = By.CSS_SELECTOR @@ -645,6 +653,14 @@ {"using": by, "value": value})['value'] def find_elements(self, by=By.ID, value=None): + """ + 'Private' method used by the find_elements_by_* methods. + + :Usage: + Use the corresponding find_elements_by_* instead of this. + + :rtype: list of WebElement + """ if self._w3c: if by == By.ID: by = By.CSS_SELECTOR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/selenium.egg-info/PKG-INFO new/selenium-3.9.0/selenium.egg-info/PKG-INFO --- old/selenium-3.8.1/selenium.egg-info/PKG-INFO 2018-01-04 20:12:31.000000000 +0100 +++ new/selenium-3.9.0/selenium.egg-info/PKG-INFO 2018-02-05 21:50:58.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: selenium -Version: 3.8.1 +Version: 3.9.0 Summary: Python bindings for Selenium Home-page: https://github.com/SeleniumHQ/selenium/ Author: UNKNOWN @@ -44,7 +44,7 @@ pip install -U selenium - Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.8.0.tar.gz), unarchive it, and run:: + Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-3.9.0.tar.gz), unarchive it, and run:: python setup.py install @@ -136,11 +136,11 @@ However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server. The server requires a Java Runtime Environment (JRE). - Download the server separately, from: http://selenium-release.storage.googleapis.com/3.8/selenium-server-standalone-3.8.0.jar + Download the server separately, from: http://selenium-release.storage.googleapis.com/3.9/selenium-server-standalone-3.9.0.jar Run the server from the command line:: - java -jar selenium-server-standalone-3.8.0.jar + java -jar selenium-server-standalone-3.9.0.jar Then run your Python client scripts. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/selenium-3.8.1/setup.py new/selenium-3.9.0/setup.py --- old/selenium-3.8.1/setup.py 2018-01-04 16:00:52.000000000 +0100 +++ new/selenium-3.9.0/setup.py 2018-02-05 21:40:41.000000000 +0100 @@ -29,7 +29,7 @@ setup_args = { 'cmdclass': {'install': install}, 'name': 'selenium', - 'version': "3.8.1", + 'version': "3.9.0", 'license': 'Apache 2.0', 'description': 'Python bindings for Selenium', 'long_description': open(join(abspath(dirname(__file__)), "README.rst")).read(),
