Package Details: python-selenium 4.19.0-1

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: a.kudelin (carsme)
Last Packager: carsme
Votes: 24
Popularity: 1.59
First Submitted: 2022-01-23 14:41 (UTC)
Last Updated: 2024-03-29 14:03 (UTC)

Latest Comments

1 2 3 4 Next › Last »

petronny commented on 2023-09-18 09:37 (UTC) (edited on 2023-09-18 10:17 (UTC) by petronny)

And it's also possible to fix the NoSuchDriverException with out installing selenium-manager. In my case, I'm using the geckodriver and I update my code from

with webdriver.Firefox() as driver:

to

from selenium.webdriver.firefox.service import Service

with webdriver.Firefox(service=Service('/usr/bin/geckodriver')) as driver:

and everything works again.

PS. To further disable the warning about log_output:

with webdriver.Firefox(service=Service('/usr/bin/geckodriver', log_output=sys.stderr)) as driver:

or so on.

petronny commented on 2023-09-18 09:15 (UTC)

Hi, I only use python but I guess selenium-manager may be also needed by other language bindings for selenium (Java/CSharp/Ruby). In that case keeping selenium-manager as a separate package is better.

carsme commented on 2023-09-17 11:26 (UTC)

Unless someone objects, I'll incorporate the contents selenium-manager into this package. You OK with that, @thrasibule?

Shalrath commented on 2023-09-16 13:48 (UTC)

4.12.0-1 works when AUR package selenium-manager is installed.

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.