This is my actual code, which doesn't work because it fails to find chrome
after a request.
@app.route('/init', methods = ['POST'])
def get_QR():
global driver # I use this to keep the webdriver session ALIVE
driver = init_selenium()
url = driver.command_executor._url
session_id = driver.session_id
session['driver_url'] = url
session['driver_id'] = session_id
return..
And crash right there when I try re-attaching to the driver
:
@app.route('/update', methods = ['POST'])
def update():
driver = webdriver.Remote(command_executor=session['driver_url'], desired_capabilities={})
I saw this post and I'm trying to implement it to preserve my Selenium webdriver
through requests. However, I don't event know how to start for storing the webdriver using multiprocessing.Manager
. Is this possible?