Use Selenium to search through some JavaScript and find a Value in Chrome Dev Tools Sources

Viewed 26

I'm coding a Python Bot that uses Selenium where it will solve Math problems, currently I got the Login system to work, but the bot still needs to find the answer number.

If you were to find the answer manually you would do this;

  1. Press CTRL + SHIFT + I
  2. Go to Sources
  3. The script will automatically popup so you just have to press CTRL + F and search for "number": (It's a JSON object.)

Is there any way of getting the Answer?

The current code is not related to what I'm after.

Sources Tab

Code:

import Selenium
0 Answers
Related