1

I'm wondering if it is possible to use Selenium to write to the Chrome console with python. I do not mean by using send_keys to press F12 and open the console then send more keys to write. If this isn't possible, are they any libraries or APIs that would let me do this? Thanks!

1 Answer 1

1

You can look at the problem with another view, try to use browser.execute_script and pass console.log("whatever you want to write in the console") , this will print that sentence in the console

You can of course change it to your own needs but you get the idea

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.