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

Is this remote webdriver supported? #40

Open
abosaad11 opened this issue Nov 8, 2023 · 3 comments
Open

Is this remote webdriver supported? #40

abosaad11 opened this issue Nov 8, 2023 · 3 comments

Comments

@abosaad11
Copy link

abosaad11 commented Nov 8, 2023

I know that Selenium stealth does not support remote webdriver. BUT, is 127.0.0.1 really "remote"? Is there any hope of making this work:

driver = webdriver.Remote(
   command_executor='http://127.0.0.1:4444/wd/hub',
   options=webdriver.ChromeOptions()
)

stealth(driver,
        languages=["en-US", "en"],
        vendor="Google Inc.",
        platform="Win32",
        webgl_vendor="Intel Inc.",
        renderer="Intel Iris OpenGL Engine",
        fix_hairline=True,
        )

Currently I get the same error, whether the Selenium Grid was local "127.0.0.1" or otherwise:

root@dc3cb4f8e581:/home/pi/tl# python3 tl-both
Traceback (most recent call last):
  File "tl-both", line 36, in <module>
    stealth(driver,
  File "/usr/local/lib/python3.8/dist-packages/selenium_stealth/__init__.py", line 41, in stealth
    raise ValueError("driver must is selenium.webdriver.Chrome, currently this lib only support Chrome")
ValueError: driver must is selenium.webdriver.Chrome, currently this lib only support Chrome

My goal is to see what's happening on screen sometimes. If you have any other suggestions to do that please do. Thank you.

@markmelnic
Copy link

markmelnic commented Aug 23, 2024

I created a fork of this package and it's now supported stealthenium

@cdekort
Copy link

cdekort commented Aug 23, 2024

Was literally just looking for this @markmelnic

@markmelnic
Copy link

@cdekort Literally released 18 mins ago, give it a star )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants