Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest selenium-driverless unsupported #119

Open
wealthr opened this issue Feb 10, 2024 · 1 comment
Open

Latest selenium-driverless unsupported #119

wealthr opened this issue Feb 10, 2024 · 1 comment
Labels
wontfix This will not be worked on

Comments

@wealthr
Copy link

wealthr commented Feb 10, 2024

I TRIED RUNNING this basic code with the latest Selenium-Driverless and Selenium-Profiles

from selenium_profiles.webdriver import Chrome
from selenium_profiles.profiles import profiles
from selenium_driverless.webdriver import ChromeOptions
from selenium_driverless.types.by import By

profile = profiles.Windows()  # or .Android
options = ChromeOptions()
# options.add_argument("--headless=new")
driver = Chrome(profile, options=options, driverless_options=True)

# get url
driver.get('https://nowsecure.nl#relax')  # test fingerprint

driver.quit()  # Execute on the End!

I GOT TRACE ERROR

Traceback (most recent call last):
  File "C:\Users\alima\PycharmProjects\pythonProject2\main.py", line 9, in <module>
    driver = Chrome(profile, options=options, driverless_options=True)
  File "C:\Users\alima\PycharmProjects\pythonProject2\venv\lib\site-packages\selenium_profiles\webdriver.py", line 109, in __init__
    options_manager = options_handler(options, profile["options"], duplicate_policy=duplicate_policy,
  File "C:\Users\alima\PycharmProjects\pythonProject2\venv\lib\site-packages\selenium_profiles\scripts\profiles.py", line 234, in __init__
    self.to_capabilities = self.Options.to_capabilities
AttributeError: 'Options' object has no attribute 'to_capabilities'
Exception ignored in: <function Chrome.__del__ at 0x000002817F995D80>
Traceback (most recent call last):
  File "C:\Users\alima\PycharmProjects\pythonProject2\venv\lib\site-packages\selenium_driverless\webdriver.py", line 860, in __del__
    if self._started:
  File "C:\Users\alima\PycharmProjects\pythonProject2\venv\lib\site-packages\selenium_driverless\sync\webdriver.py", line 28, in __getattribute__
    res = super().__getattribute__(item)
AttributeError: 'Chrome' object has no attribute '_started'
@kaliiiiiiiiii kaliiiiiiiiii added the wontfix This will not be worked on label Feb 10, 2024
@kaliiiiiiiiii kaliiiiiiiiii pinned this issue Feb 10, 2024
@kaliiiiiiiiii
Copy link
Owner

I'll deprecate the use of selenium-driverless with selenium-profiles.

@kaliiiiiiiiii kaliiiiiiiiii changed the title ERROR USING LATEST VERSIONS Latest selenium-driverless unsupported Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants