I am wondering if selenium can do below? I want to automate only certain parts of the automation flow:
The only option I am familiar with is to write and run custom JS that modifies form elements, in the browser>inspect>console. For above, I'll have to run different functions on each page. For doing this, I can comment out all but the required function call and run it. I think I cannot select and run only one part of the code (for page 1 for example) from the console.
PS: If any of the strict SO folks think this is not fitting SO, where else is a good (automation focused?) place to ask for finding the right tools for this kind of stuff?
Note: I have used selenium via python, so solution reflects that.
Oh yeah. It's just a python script. Don't think of it in terms if selenium script. A python script can be easily made to wait for input.
print("Hi!. Script Started")
# code to load webpage, automatically fill whatever can be entered
x = input("Waiting for manual date to be entered. Enter YES when done.")
# Enter the data on page manually. Then come back to terminal and type YES and then press enter.
if x == 'YES':
continue_script_here()
else:
kill_script_or_something_else()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With