14
0
Files
python-selenium/python-selenium.spec
Steve Kowalik 7624c6fedd - Update to 4.10.0:
* Fix bug preventing proxy from working in Options classes (#12029)
  * Add support for changing pointers in Actions class (#11521)
  * Support newer versions of urllib3 (#11993)
  * Add fine grained control for arguments provided to service subprocesses
    by passing a `popen_kw` mapping for all services.
  * `Options` classes now allow `timeout` to be set partially and no longer
    raise an exception when all values are not provided. (#11623)
  * Fixed a bug in `Service` destructors accessing modules that no longer
    existed during interpreter shutdown.
  * Fix frame_to_be_available_and_switch_to_it() for string inputs (#10963)
  * Use monotonic clock for waits, fixes #10544 (#10550)
  * Use `get_timeout()` for urllib pool manager timeouts in remote
    connection (#10563)
  * update ShadowRoot find element signatures to match those in
    WebElement (#10138)
  * Check the values in NO_PROXY and set the poolmanager accordingly
    (#9925, #9967)
  * Allows None to be set for the sameSite attribute (#9771)
  * Specify that the "find_element_by_* ..." warning is a deprecation
    warning (#9700)
  * Allow 0 coordinates for the window position. Fixes #9574
  * Add the ability to pass in multiple options and have that capabilities
    returned as (first|always)Match
  * Add the ability to pass in different locators to do Relative Locator
    searches
  * Add the ability to enable mobile on options classes
  * Allow overriding the default 250 msecs duration of pointer movement (#9336)
  * Set Chromium Edge to be the default for Edge browsers
  * Add ARIA APIs for getting the role and label of an Element

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=85
2023-06-09 06:29:39 +00:00

83 lines
2.8 KiB
RPMSpec

#
# spec file for package python-selenium
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-selenium
Version: 4.10.0
Release: 0
Summary: Python bindings for Selenium
License: Apache-2.0
URL: https://github.com/SeleniumHQ/selenium
Source: https://files.pythonhosted.org/packages/source/s/selenium/selenium-%{version}.tar.gz
# https://github.com/SeleniumHQ/selenium/issues/6246
Source1: selenium-pytest.tar.bz2
# https://github.com/SeleniumHQ/selenium/issues/12166
Source2: https://raw.githubusercontent.com/SeleniumHQ/selenium/trunk/LICENSE
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rdflib}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module urllib3}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi >= 2021.10.8
Requires: python-trio >= 0.17
Requires: python-trio-websocket >= 0.9
Requires: python-urllib3
ExclusiveArch: %{ix86} x86_64 %arm aarch64
%python_subpackages
%description
Selenium Python Client Driver is a Python language binding for Selenium Remote
Control (version 1.0 and 2.0).
Currently, the remote protocol, Firefox and Chrome for Selenium 2.0 are
supported, as well as the Selenium 1.0 bindings.
%prep
%setup -q -n selenium-%{version} -a1
cp %{SOURCE2} .
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Do not package .so built for foreign architectures
%ifnarch %{ix86} x86_64
%python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so
%endif
%ifnarch x86_64
%python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
%endif
%check
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test/unit
%files %{python_files}
%doc README.rst CHANGES
%license LICENSE
%{python_sitelib}/selenium
%{python_sitelib}/selenium-%{version}*info
%changelog