-
My goal is to run Undetected-Chromedriver sessions in Python and then take control of the browser with phpwebdriver. I start by running the following code in Python: import undetected_chromedriver as uc
import time
options = uc.ChromeOptions()
options.debugger_address = "127.0.0.1:5444"
driver = uc.Chrome(options = options , version_main = 112)
driver.get( 'https://yahoo.com' )
print(driver.session_id)
print('-')
print(driver.options.debugger_address)
time.sleep(400) Then, I try to establish a connection to the session and defined debugger_address using phpwebdriver. However, it appears that UC does not communicate via http://127.0.0.1:5444/, but rather via websocket, which is not supported by curl/phpwebdriver. I could write a bridge between PHP and Python, but that would not be useful; it would be better to use Python directly. Any help or suggestions would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured out how to do it, I'll post a gist here with the solution. |
Beta Was this translation helpful? Give feedback.
I figured out how to do it, I'll post a gist here with the solution.