Skip to content
Advertisement

How to Get Int from JS Prompt Using Selenium in Python

I am trying to create a prompt for a number from the user on a web page while using selenium in python.

This is the code I have written but it returns None

JavaScript

Advertisement

Answer

So I figured out the answer to my question.

Here is the code for anyone who might have the same issue:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement