We are trying to run multiple instances of Selenium in Selenium Grid using the selenium-stealth (https://github.com/diprajpatra/selenium-stealth). But we are facing some errors which doesn't allow us to continue.
We have been able to make it work using the regular chromedriver but we are loosing the stealth capabilities hence we are not being able to operate with the website as it's being detected.
When trying to make it run using selenium-stealth with the following parameters:
driver = webdriver.Remote(
command_executor='http://127.0.0.1:4444/wd/hub',
options=chrome_options)
# Uses stealth package to set the fingerprints.
stealth(driver,
languages=['vi', 'vi-VN'],
vendor='Google Inc.',
platform='Win32',
webgl_vendor='Intel Inc.',
renderer='Intel Iris OpenGL Engine',
fix_hairline=True,
)
return driver
We are getting the following error:
Traceback (most recent call last):
File "C:\Users\chris\Desktop\sms-selenium\sms.py", line 260, in <module>
fingerprint_test()
File "C:\Users\chris\Desktop\sms-selenium\sms.py", line 116, in fingerprint_test
driver = get_driver()
File "C:\Users\chris\Desktop\sms-selenium\sms.py", line 59, in get_driver
stealth(driver,
File "C:\Python310\lib\site-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
Does anyone have an idea on how we could fix this issue in order to make selenium grid work with selenium-stealth?
Please let me know if there's any other information that I could provide to address this issue.
Kind regards, Chris