Open freemind002 opened 1 year ago
https://stackoverflow.com/questions/69407211/cannot-connect-to-chrome-at-127-0-0-137541-when-using-undetected-chromedriver First result from google search of the error, give it a shot
driver = uc.Chrome(headless=True)
pyvirtualdisplay
to run the virtualdisaply and then run your chrome.Note: According to my experience, headless
mode is detected somehow in some websites ( although non-headless mode is not detected. ). So I don't use headless. :)
uc.Chrome(driver_executable_path=self.webdriver_path(), options=arg, headless=True, version_main=112)
@OpsecGuy your solution is working but is it possible to remove version_main from parameters since it has to be given manually after updating chromedriver
Here is my code
It did work but when I try this way
it did not work, it crashed and said:
how can I fix this problem?