-2

I'm doing a python script with selenium. To do tests I use command promp, this way i know if my line of command is working without needing to execute the program over and over to correct line by line. The thing is, i need a way to automatically start this lines so i don't need to keep retype it everytime i want to do some tests.

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options = webdriver.ChromeOptions()
options.add_argument('lang=pt-br')
driver = webdriver.Chrome(executable_path=r'./chromedriver.exe', options=options

1 Answers1

1

From the command line, running python -m pdb <yourscript.py> should open the Python Debugger and allow you to step through. Each line is run by entering n and returning.