Package Details: python-selenium 4.27.1-2

Git Clone URL: https://aur.archlinux.org/python-selenium.git (read-only, click to copy)
Package Base: python-selenium
Description: Python language bindings for Selenium WebDriver
Upstream URL: https://github.com/SeleniumHQ/selenium
Licenses: Apache-2.0
Submitter: jelly
Maintainer: carsme (txtsd)
Last Packager: txtsd
Votes: 32
Popularity: 1.52
First Submitted: 2022-01-23 14:41 (UTC)
Last Updated: 2024-11-28 04:24 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

carsme commented on 2023-09-15 15:53 (UTC)

@thrasibule, is there a good reason to build it as a separate package? We could build the Selenium Webdriver as part of this package.

thrasibule commented on 2023-09-13 18:22 (UTC)

I've added a selenium-manager package that fixes the NoSuchDriverException with the more recent versions.

glowingsword commented on 2023-09-01 19:26 (UTC)

Fails on

test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsole FAILED                                                                   [ 31%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testBack SKIPPED (requires Windows)                                                     [ 32%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testStyle SKIPPED (requires Windows)                                                    [ 33%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsoleOnStderr FAILED                                                           [ 34%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testInit FAILED                                                                         [ 34%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testResetAll FAILED                                                                     [ 35%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testFore SKIPPED (requires Windows)                                                     [ 36%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testBack SKIPPED (requires Windows)                                                   [ 37%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testStyle SKIPPED (requires Windows)                                                  [ 37%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsoleOnStderr FAILED                                                         [ 38%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testInit FAILED                                                                       [ 39%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testGetAttrs SKIPPED (requires Windows)                                               [ 40%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsole FAILED                                                                 [ 40%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testResetAll FAILED                                                                   [ 41%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testFore SKIPPED (requires Windows)                                                   [ 42%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAutoResetPassedOn SKIPPED (sys.stdout is not a tty)                                 [ 42%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapOffDoesntWrapOnWindows SKIPPED (sys.stdout is not a tty)                    [ 43%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapOffIncompatibleWithAutoresetOn SKIPPED (sys.stdout is not a tty)            [ 44%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapOnEmulatedWindows SKIPPED (sys.stdout is not a tty)                   [ 45%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAutoResetChangeable SKIPPED (sys.stdout is not a tty)                               [ 45%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapOnNonWindows SKIPPED (sys.stdout is not a tty)                        [ 46%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAtexitRegisteredOnlyOnce SKIPPED (sys.stdout is not a tty)                          [ 47%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapsOnWindows SKIPPED (sys.stdout is not a tty)                                [ 48%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapIfNone SKIPPED (sys.stdout is not a tty)                              [ 48%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitAutoresetOnWrapsOnAllPlatforms SKIPPED (sys.stdout is not a tty)                [ 49%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::JustFixWindowsConsoleTest::testJustFixWindowsConsole PASSED                                       [ 50%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAutoResetChangeable SKIPPED (sys.stdout is not a tty)                             [ 51%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAtexitRegisteredOnlyOnce SKIPPED (sys.stdout is not a tty)                        [ 51%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitAutoresetOnWrapsOnAllPlatforms SKIPPED (sys.stdout is not a tty)              [ 52%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapIfNone SKIPPED (sys.stdout is not a tty)                            [ 53%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapOffDoesntWrapOnWindows SKIPPED (sys.stdout is not a tty)                  [ 54%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapOffIncompatibleWithAutoresetOn SKIPPED (sys.stdout is not a tty)          [ 54%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testAutoResetPassedOn SKIPPED (sys.stdout is not a tty)                               [ 55%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitWrapsOnWindows SKIPPED (sys.stdout is not a tty)                              [ 56%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapOnEmulatedWindows SKIPPED (sys.stdout is not a tty)                 [ 57%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::InitTest::testInitDoesntWrapOnNonWindows SKIPPED (sys.stdout is not a tty)                      [ 57%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/initialise_test.py::JustFixWindowsConsoleTest::testJustFixWindowsConsole PASSED                                     [ 58%]
test/unit/selenium/webdriver/virtual_authenticator/credentials_test.py::test_from_dict PASSED                                                                                          [ 59%]
test/unit/selenium/webdriver/virtual_authenticator/credentials_test.py::test_rk_enabled_credential PASSED                                                                              [ 60%]
test/unit/selenium/webdriver/virtual_authenticator/credentials_test.py::test_to_dict PASSED                                                                                            [ 60%]
test/unit/selenium/webdriver/virtual_authenticator/credentials_test.py::test_rk_disabled_credentials PASSED                                                                            [ 61%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_reset_all_shouldnt_raise_on_closed_orig_stdout PASSED                      [ 62%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_native_windows_ansi FAILED                                                 [ 62%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_wrap_shouldnt_raise_on_closed_orig_stdout PASSED                           [ 63%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertCallsWin32WithParamsAndCommand PASSED                        [ 64%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertStripsAllValidAnsi PASSED                                    [ 65%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testCallWin32UsesLookup PASSED                                                  [ 65%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testStripIsFalseOffWindows PASSED                                               [ 66%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertSkipsEmptySnippets PASSED                                    [ 67%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertWritesPlainText PASSED                                       [ 68%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testExtractParams PASSED                                                        [ 68%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_wrap_shouldnt_raise_on_missing_closed_attr PASSED                          [ 69%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAutoresets PASSED                                                      [ 70%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteStripsAnsi PASSED                                                      [ 71%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_osc_codes FAILED                                                           [ 71%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testStripIsTrueOnWindows PASSED                                                 [ 72%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testInit PASSED                                                                 [ 73%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteDoesNotStripAnsi PASSED                                                [ 74%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::test_closed_shouldnt_raise_on_detached_stream PASSED                          [ 74%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::testDelegatesWrite PASSED                                                     [ 75%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::testDelegatesContext PASSED                                                   [ 76%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::test_closed_shouldnt_raise_on_closed_stream PASSED                            [ 77%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::testIsAProxy PASSED                                                           [ 77%]
test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::StreamWrapperTest::testProxyNoContextManager PASSED                                              [ 78%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testInit PASSED                                                               [ 79%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testCallWin32UsesLookup PASSED                                                [ 80%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteDoesNotStripAnsi PASSED                                              [ 80%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteStripsAnsi PASSED                                                    [ 81%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testStripIsTrueOnWindows PASSED                                               [ 82%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testExtractParams PASSED                                                      [ 82%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAutoresets PASSED                                                    [ 83%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_wrap_shouldnt_raise_on_missing_closed_attr PASSED                        [ 84%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertWritesPlainText PASSED                                     [ 85%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testStripIsFalseOffWindows PASSED                                             [ 85%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertStripsAllValidAnsi PASSED                                  [ 86%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertCallsWin32WithParamsAndCommand PASSED                      [ 87%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_reset_all_shouldnt_raise_on_closed_orig_stdout PASSED                    [ 88%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::testWriteAndConvertSkipsEmptySnippets PASSED                                  [ 88%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_native_windows_ansi FAILED                                               [ 89%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_osc_codes FAILED                                                         [ 90%]
test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_wrap_shouldnt_raise_on_closed_orig_stdout PASSED                         [ 91%]

with errors like this

========================================================================================== FAILURES ==========================================================================================
_________________________________________________________________________________ WinTermTest.testSetConsole _________________________________________________________________________________

self = <pip._vendor.colorama.tests.winterm_test.WinTermTest testMethod=testSetConsole>, mockWin32 = <MagicMock name='win32' id='140642873640848'>

    @patch('colorama.winterm.win32')
    def testSetConsole(self, mockWin32):
        mockAttr = Mock()
        mockAttr.wAttributes = 0
        mockWin32.GetConsoleScreenBufferInfo.return_value = mockAttr
>       term = WinTerm()

test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py:104: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pip._vendor.colorama.winterm.WinTerm object at 0x7efe9c758bd0>

    def __init__(self):
>       self._default = win32.GetConsoleScreenBufferInfo(win32.STDOUT).wAttributes
E       AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'

test-env/lib/python3.11/site-packages/pip/_vendor/colorama/winterm.py:31: AttributeError
====================================================================================== warnings summary ======================================================================================
../../../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1373
  /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1373: PytestConfigWarning: Unknown config option: trio_mode

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ===================================================================================
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_osc_codes - AttributeError: 'NoneType' object has no attribute 'set_title'
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_native_windows_ansi - AssertionError: expected call not found.
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_osc_codes - AttributeError: 'NoneType' object has no attribute 'set_title'
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/ansitowin32_test.py::AnsiToWin32Test::test_native_windows_ansi - AssertionError: expected call not found.
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testInit - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testResetAll - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsole - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsoleOnStderr - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testResetAll - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testInit - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsole - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
FAILED test-env/lib64/python3.11/site-packages/pip/_vendor/colorama/tests/winterm_test.py::WinTermTest::testSetConsoleOnStderr - AttributeError: module 'pip._vendor.colorama.win32' has no attribute 'GetConsoleScreenBufferInfo'
==================================================================== 12 failed, 95 passed, 28 skipped, 1 warning in 1.08s ====================================================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-selenium-exit status 4

carsme commented on 2023-08-30 17:44 (UTC)

@a.kudelin If you require help fixing the package, consider adding me as co-maintainer. Thanks!

Shalrath commented on 2023-08-28 03:31 (UTC)

Can confirm that it is broken because /usr/lib/python3.11/site-packages/selenium/webdriver/common/linux/selenium-manager is missing.

jgodden commented on 2023-08-22 17:43 (UTC)

Here's a kludge which restores functionality for me since the 4.11.2-1 breaks access to the firefox webdriver resulting in a NoSuchDriverException. Adding a link to a "service":

from selenium import webdriver
from selenium.webdriver.firefox.service import Service
service = Service(executable_path='/usr/bin/geckodriver')
browser = webdriver.Firefox(service=service)

generates a deprecation warning about logging, but does get around the above NoSuchDriverException (for me). good luck to us.

tsj commented on 2023-08-21 16:32 (UTC) (edited on 2023-08-21 16:48 (UTC) by tsj)

Same issue as @jgodden, selenium-manager is missing and so you cannot load any webdriver. I tried setting the webdriver binary location manually but couldn't stop selenium from searching for this manager thing. Tried building the package in a devtools chroot but the build hangs for me at some point in the tests. I even tried building the bindings (not the PKGBUILD) using the upstream-supported build method (bazel) but these supposed "reproducible builds" were throwing errors. Ended up installing in $HOME via pip/PyPi, the same version (4.11.2) works fine.

Shalrath commented on 2023-08-18 16:29 (UTC) (edited on 2023-08-28 03:29 (UTC) by Shalrath)

Download fails, error 404

https://github.com/SeleniumHQ/selenium/archive/refs/tags/selenium-4.11.2-python.tar.gz

EDIT: File is available again.

jgodden commented on 2023-08-18 14:50 (UTC)

Since 2023-08-18 update to 4.11.2-1 seeing "WebDriverException" Exception following a simple two python sequence:

from selenium import webdriver
browser = webdriver.Firefox()

Then a long trace back where I'm hoping this is the salient line:

WebDriverException: Message: Unable to obtain working Selenium Manager binary; /usr/lib/python3.11/site-packages/selenium/webdriver/common/linux/selenium-manager

Thank you for your efforts! python-selenium has been rock-solid for me prior this point

kbipinkumar commented on 2023-08-06 05:52 (UTC)

the tests are failing with 4.11 version of selenium. here is the complete build log https://build.bioarchlinux.org/api/pkg/python-selenium/log/1690851687