Hello community,
here is the log from the commit of package python-selenium for openSUSE:Factory
checked in at 2019-05-22 10:50:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-selenium (Old)
and /work/SRC/openSUSE:Factory/.python-selenium.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-selenium"
Wed May 22 10:50:52 2019 rev:11 rq:703772 version:3.141.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-selenium/python-selenium.changes
2018-09-24 13:13:05.905723944 +0200
+++
/work/SRC/openSUSE:Factory/.python-selenium.new.5148/python-selenium.changes
2019-05-22 10:50:53.919342603 +0200
@@ -1,0 +2,13 @@
+Fri May 17 18:42:59 UTC 2019 - Meera Belur <[email protected]>
+
+- Update to version 3.141.0
+ + Bump version to a better approximation of Π
+ + Improved Test build targets
+ + fix os path in test for Windows
+ + use 'NUL' for /dev/null on Windows
+ + Update ctor docstrings to explain that a directory passed in is cloned.
Fixes #6542
+ + Allow passing of service_args to Safari. Fixes #6459
+ + Remove element equals url
+ + Improved WebExtension support
+
+-------------------------------------------------------------------
Old:
----
selenium-3.14.1.tar.gz
New:
----
selenium-3.141.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-selenium.spec ++++++
--- /var/tmp/diff_new_pack.l0yd9d/_old 2019-05-22 10:50:56.631341051 +0200
+++ /var/tmp/diff_new_pack.l0yd9d/_new 2019-05-22 10:50:56.683341021 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-selenium
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-selenium
-Version: 3.14.1
+Version: 3.141.0
Release: 0
Summary: Python bindings for Selenium
License: Apache-2.0
++++++ selenium-3.14.1.tar.gz -> selenium-3.141.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/CHANGES new/selenium-3.141.0/CHANGES
--- old/selenium-3.14.1/CHANGES 2018-09-20 20:21:34.000000000 +0200
+++ new/selenium-3.141.0/CHANGES 2018-11-01 09:43:44.000000000 +0100
@@ -1,3 +1,13 @@
+Selenium 3.141.0
+* Bump version to a better approximation of Π
+* Improved Test build targets
+* fix os path in test for Windows
+* use 'NUL' for /dev/null on Windows
+* Update ctor docstrings to explain that a directory passed in is cloned.
Fixes #6542
+* Allow passing of service_args to Safari. Fixes #6459
+* Remove element equals url
+* Improved WebExtension support
+
Selenium 3.14.1
* Fix ability to set timeout for urllib3 (#6286)
* get_cookie uses w3c endpoint when compliant
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/PKG-INFO
new/selenium-3.141.0/PKG-INFO
--- old/selenium-3.14.1/PKG-INFO 2018-09-20 21:20:47.000000000 +0200
+++ new/selenium-3.141.0/PKG-INFO 2018-11-01 10:00:39.000000000 +0100
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: selenium
-Version: 3.14.1
+Version: 3.141.0
Summary: Python bindings for Selenium
Home-page: https://github.com/SeleniumHQ/selenium/
Author: UNKNOWN
Author-email: UNKNOWN
License: Apache 2.0
-Description-Content-Type: UNKNOWN
Description: ======================
Selenium Client Driver
======================
@@ -44,7 +43,7 @@
pip install -U selenium
- Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.14.0.tar.gz),
unarchive it, and run::
+ Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.141.0.tar.gz),
unarchive it, and run::
python setup.py install
@@ -136,11 +135,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.14/selenium-server-standalone-3.14.0.jar
+ Download the server separately, from:
http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.0.jar
Run the server from the command line::
- java -jar selenium-server-standalone-3.14.0.jar
+ java -jar selenium-server-standalone-3.141.0.jar
Then run your Python client scripts.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/README.rst
new/selenium-3.141.0/README.rst
--- old/selenium-3.14.1/README.rst 2018-09-04 16:27:41.000000000 +0200
+++ new/selenium-3.141.0/README.rst 2018-11-01 09:34:03.000000000 +0100
@@ -35,7 +35,7 @@
pip install -U selenium
-Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.14.0.tar.gz),
unarchive it, and run::
+Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.141.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.14/selenium-server-standalone-3.14.0.jar
+Download the server separately, from:
http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.0.jar
Run the server from the command line::
- java -jar selenium-server-standalone-3.14.0.jar
+ java -jar selenium-server-standalone-3.141.0.jar
Then run your Python client scripts.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/selenium/__init__.py
new/selenium-3.141.0/selenium/__init__.py
--- old/selenium-3.14.1/selenium/__init__.py 2018-09-20 20:22:22.000000000
+0200
+++ new/selenium-3.141.0/selenium/__init__.py 2018-11-01 09:34:03.000000000
+0100
@@ -16,4 +16,4 @@
# under the License.
-__version__ = "3.14.1"
+__version__ = "3.141.0"
Binary files
old/selenium-3.14.1/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so and
new/selenium-3.141.0/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/selenium-3.14.1/selenium/webdriver/firefox/firefox_profile.py
new/selenium-3.141.0/selenium/webdriver/firefox/firefox_profile.py
--- old/selenium-3.14.1/selenium/webdriver/firefox/firefox_profile.py
2018-09-18 04:04:30.000000000 +0200
+++ new/selenium-3.141.0/selenium/webdriver/firefox/firefox_profile.py
2018-10-16 22:37:54.000000000 +0200
@@ -55,7 +55,9 @@
Initialises a new instance of a Firefox Profile
:args:
- - profile_directory: Directory of profile that you want to use.
+ - profile_directory: Directory of profile that you want to use. If a
+ directory is passed in it will be cloned and the cloned directory
+ will be used by the driver when instantiated.
This defaults to None and will create a new
directory when object is created.
"""
@@ -330,6 +332,20 @@
rc.append(node.data)
return ''.join(rc).strip()
+ def parse_manifest_json(content):
+ """Extracts the details from the contents of a WebExtensions
`manifest.json` file."""
+ manifest = json.loads(content)
+ try:
+ id = manifest['applications']['gecko']['id']
+ except KeyError:
+ id = manifest['name'].replace(" ", "") + "@" +
manifest['version']
+ return {
+ 'id': id,
+ 'version': manifest['version'],
+ 'name': manifest['version'],
+ 'unpack': False,
+ }
+
if not os.path.exists(addon_path):
raise IOError('Add-on path does not exist: %s' % addon_path)
@@ -339,10 +355,18 @@
# it will cause an exception thrown in Python 2.6.
try:
compressed_file = zipfile.ZipFile(addon_path, 'r')
+ if 'manifest.json' in compressed_file.namelist():
+ return
parse_manifest_json(compressed_file.read('manifest.json'))
+
manifest = compressed_file.read('install.rdf')
finally:
compressed_file.close()
elif os.path.isdir(addon_path):
+ manifest_json_filename = os.path.join(addon_path,
'manifest.json')
+ if os.path.exists(manifest_json_filename):
+ with open(manifest_json_filename, 'r') as f:
+ return parse_manifest_json(f.read())
+
with open(os.path.join(addon_path, 'install.rdf'), 'r') as f:
manifest = f.read()
else:
Binary files old/selenium-3.14.1/selenium/webdriver/firefox/webdriver.xpi and
new/selenium-3.141.0/selenium/webdriver/firefox/webdriver.xpi differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/selenium/webdriver/remote/command.py
new/selenium-3.141.0/selenium/webdriver/remote/command.py
--- old/selenium-3.14.1/selenium/webdriver/remote/command.py 2018-09-04
16:27:41.000000000 +0200
+++ new/selenium-3.141.0/selenium/webdriver/remote/command.py 2018-10-09
16:25:27.000000000 +0200
@@ -94,7 +94,6 @@
GET_ELEMENT_ATTRIBUTE = "getElementAttribute"
GET_ELEMENT_PROPERTY = "getElementProperty"
GET_ELEMENT_VALUE_OF_CSS_PROPERTY = "getElementValueOfCssProperty"
- ELEMENT_EQUALS = "elementEquals"
SCREENSHOT = "screenshot"
ELEMENT_SCREENSHOT = "elementScreenshot"
IMPLICIT_WAIT = "implicitlyWait"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/selenium-3.14.1/selenium/webdriver/remote/remote_connection.py
new/selenium-3.141.0/selenium/webdriver/remote/remote_connection.py
--- old/selenium-3.14.1/selenium/webdriver/remote/remote_connection.py
2018-09-04 16:27:41.000000000 +0200
+++ new/selenium-3.141.0/selenium/webdriver/remote/remote_connection.py
2018-10-09 16:25:27.000000000 +0200
@@ -208,8 +208,6 @@
('GET', '/session/$sessionId/element/$id/attribute/$name'),
Command.GET_ELEMENT_PROPERTY:
('GET', '/session/$sessionId/element/$id/property/$name'),
- Command.ELEMENT_EQUALS:
- ('GET', '/session/$sessionId/element/$id/equals/$other'),
Command.GET_ALL_COOKIES: ('GET', '/session/$sessionId/cookie'),
Command.ADD_COOKIE: ('POST', '/session/$sessionId/cookie'),
Command.GET_COOKIE: ('GET', '/session/$sessionId/cookie/$name'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/selenium/webdriver/safari/service.py
new/selenium-3.141.0/selenium/webdriver/safari/service.py
--- old/selenium-3.14.1/selenium/webdriver/safari/service.py 2018-09-04
16:27:41.000000000 +0200
+++ new/selenium-3.141.0/selenium/webdriver/safari/service.py 2018-10-16
22:37:54.000000000 +0200
@@ -25,13 +25,15 @@
Object that manages the starting and stopping of the SafariDriver
"""
- def __init__(self, executable_path, port=0, quiet=False):
+ def __init__(self, executable_path, port=0, quiet=False,
service_args=None):
"""
Creates a new instance of the Service
:Args:
- executable_path : Path to the SafariDriver
- - port : Port the service is running on """
+ - port : Port the service is running on
+ - quiet : Suppress driver stdout and stderr
+ - service_args : List of args to pass to the safaridriver service """
if not os.path.exists(executable_path):
if "Safari Technology Preview" in executable_path:
@@ -43,6 +45,8 @@
if port == 0:
port = utils.free_port()
+ self.service_args = service_args or []
+
self.quiet = quiet
log = PIPE
if quiet:
@@ -50,7 +54,7 @@
service.Service.__init__(self, executable_path, port, log)
def command_line_args(self):
- return ["-p", "%s" % self.port]
+ return ["-p", "%s" % self.port] + self.service_args
@property
def service_url(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/selenium-3.14.1/selenium/webdriver/safari/webdriver.py
new/selenium-3.141.0/selenium/webdriver/safari/webdriver.py
--- old/selenium-3.14.1/selenium/webdriver/safari/webdriver.py 2018-09-18
04:35:23.000000000 +0200
+++ new/selenium-3.141.0/selenium/webdriver/safari/webdriver.py 2018-10-16
22:37:54.000000000 +0200
@@ -35,7 +35,7 @@
def __init__(self, port=0, executable_path="/usr/bin/safaridriver",
reuse_service=False,
desired_capabilities=DesiredCapabilities.SAFARI, quiet=False,
- keep_alive=True):
+ keep_alive=True, service_args=None):
"""
Creates a new Safari driver instance and launches or finds a running
safaridriver service.
@@ -48,10 +48,11 @@
- quiet - If True, the driver's stdout and stderr is suppressed.
- keep_alive - Whether to configure SafariRemoteConnection to use
HTTP keep-alive. Defaults to False.
+ - service_args : List of args to pass to the safaridriver service
"""
self._reuse_service = reuse_service
- self.service = Service(executable_path, port=port, quiet=quiet)
+ self.service = Service(executable_path, port=port, quiet=quiet,
service_args=service_args)
if not reuse_service:
self.service.start()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/selenium.egg-info/PKG-INFO
new/selenium-3.141.0/selenium.egg-info/PKG-INFO
--- old/selenium-3.14.1/selenium.egg-info/PKG-INFO 2018-09-20
21:20:47.000000000 +0200
+++ new/selenium-3.141.0/selenium.egg-info/PKG-INFO 2018-11-01
10:00:39.000000000 +0100
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: selenium
-Version: 3.14.1
+Version: 3.141.0
Summary: Python bindings for Selenium
Home-page: https://github.com/SeleniumHQ/selenium/
Author: UNKNOWN
Author-email: UNKNOWN
License: Apache 2.0
-Description-Content-Type: UNKNOWN
Description: ======================
Selenium Client Driver
======================
@@ -44,7 +43,7 @@
pip install -U selenium
- Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.14.0.tar.gz),
unarchive it, and run::
+ Alternately, you can download the source distribution from `PyPI
<https://pypi.org/project/selenium/#files>`_ (e.g. selenium-3.141.0.tar.gz),
unarchive it, and run::
python setup.py install
@@ -136,11 +135,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.14/selenium-server-standalone-3.14.0.jar
+ Download the server separately, from:
http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.0.jar
Run the server from the command line::
- java -jar selenium-server-standalone-3.14.0.jar
+ java -jar selenium-server-standalone-3.141.0.jar
Then run your Python client scripts.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/selenium-3.14.1/setup.py
new/selenium-3.141.0/setup.py
--- old/selenium-3.14.1/setup.py 2018-09-20 20:22:22.000000000 +0200
+++ new/selenium-3.141.0/setup.py 2018-11-01 09:57:01.000000000 +0100
@@ -29,7 +29,7 @@
setup_args = {
'cmdclass': {'install': install},
'name': 'selenium',
- 'version': "3.14.1",
+ 'version': "3.141.0",
'license': 'Apache 2.0',
'description': 'Python bindings for Selenium',
'long_description': open(join(abspath(dirname(__file__)),
"README.rst")).read(),