I have 12 lines of JavaScript code which provides the desired output on webpage console 'x'. I want to store this value 'x' in a python variable for further computations in python.
I used python selenium but since I'm new to it, I've been able to parse one line JS codes with it. Is there a solution to the problem I am facing?
Edit: I've reframed the problem statement to understand my situation precisely. I've put the problem statement here - How to get JS code output from console.log to python list?