We are working with the chromedriver via python selenium.
So i understand how to get the console log via this post but what I'm intersted in is getting the output of the function in the console log
driver.get_log('browser')
outputs
{'level': 'INFO',
'message': 'https://public.website.com/stuff/stuff.js?v=numbers "function = "',
'source': 'console-api',
'timestamp': blah
},
In the developers console in chrome the function is evaluated in realtime and the results are outputted in json format in the console. How do I record those results?
EDIT: No luck so far. I would like to be able to return the evaluated js in any format.