What can I use to paste a list of URLs into a single field one entry at a time? - forms

I need to paste a list of 50 URLs into the URL field on Amazon's infringement form (https://www.amazon.com/report/infringement), but the form only takes one URL at a time. Is there some program, macro, or programming tool that I could use to paste the list in automatically one by one with a short delay or by pressing a hotkey?

If you just want a tool some options are Selenium or borchief but if you are willing to develop then Cron + Python is another alternative. Cron would be used to schedule the script that you want to repetitively repeat. Using the mechanize module on python you can make a script that fills in a form on a website. Here are useful tutorial links for cron and mechanize on python. You could also just make another script that sleeps for some time before calling the mechanize script. There's also HTMLunit for Java

Sounds like something you could do with Selenium IDE https://www.seleniumhq.org/projects/ide/
Maybe start with something like this: https://nadimsaker.blogspot.com/2015/01/how-to-use-array-in-selenium-ide.html

Related

Can I create a link into rundeck that goes straight to the execution of the job?

I have a job without parameters that I would like to give my users to start from a HTML page outside of rundeck.
I'd prefer to not go through additional clicks with the output selection and debug options, but go straight to e.g. https://host/rundeck/project/myproject/execution/show/35#output
But of course the 35 would need to be replaced with $new or something similar, and know that I want to trigger a certain job. Is there a way? Something like https://host/rundeck/project/myproject/execution/show/$new&jobuuid=cce4b26b-8e8a-4920-bd99-4fa3092a3a02 ?
The closest approach is to use this ULR http://localhost:4440/project/ProjectEXAMPLE/job/show/030801bc-6933-472f-ae61-cae11121ca6e (it needs only a click on the "History" tab).

Gui of Perl Script

I have a perl script that has parameters (for example) "perl script.pl (parameter 1) (parameter 2)"
And I want the script to have gui, so the user puts the two parameters in 2 textbox and then by clicking on a button, the script with those parameters is executed.
If it is not possible with visual basic, please say with what program is it possible to do that.
I actually figured out (somehow) how to do it in Visual Basic, and it works.
Thank you anyways, guys!
If you have your script running on a webserver you could potentially build your GUI in HTML and then pass the parameters via POST request to your script. Without some prior knowledge of programming and the http protocol it might take a bit of research to get this setup and running.
There is some more discussion about how you could potentially do this in the answers to the question here

Script to fill browser form

I have little business problem, I need to make a script to fill (not send) out browser forms(only simple textfields, checkboxes and drop downboxes).
I need to launch multiple windows with the same form with different data to speed up form filling
What kind of scripting/programming do I need to use to fulfill these needs(Batch, JS .. ) ?
I have knowledge only of java, and basic html,c,c++ ... so if I can get basic tutorials I would be grateful indeed.
I have bits of ideas of how this is possible - through IDs of various field on the page which I can access to edit their values, so I just need language specific tutorials/suggestions.
Batch would be preferable if possible, because i need to execute the script through a java swing program.
P.S : If this is of any relevance, only browser acceptable is IE
dont think its possible through Batch,
I think easiest would be javaScript for this task. (chill js is pretty easy)
You can write a simple javaScript to fill in form
You should find how to fill form through javaScript helpful
Then you can use ScriptEngineManager to execute javaScript from your java code.
This tutorial should be helpful :execute javascript from java
You can't fill HTML-fields with a Batch-File. The easiest way is to use Javascript an Greasemonkey in Mozilla Firefox. You can find Tutorials here.
An other way to send data to an WebServer is to use in C/C++/Java Sockets and the HTML-Protocol.

Testing Facebook application written using GWT

I'm currently writing a facebook application using GWT on Eclipse, how can I test the application with all the interaction??
If you mean how can you write tests for your whole working application, you might want to have a look at Selenium (http://seleniumhq.org/). There are a variety of ways of using it, but essentially you can use it to automate a browser and click on elements, enter text, verify that you can see the correct result.
With GWT you will need to use "ensureDebugId" method on UiObject and add
to your gwt.xml file so that you get repeatable element ids that you can use in your tests.

How do I structure my Perl CGI program?

We just got our first major Perl CGI assignment in my CS class. Our task is to create an mp3 sharing site that allows users to create accounts, log in, share mp3's. Statistics must be shown of current users, mp3's available, etc. All actions must be written to a log file. Our code must be secure.
So far, I have implemented each of these actions separately as their own CGI scripts. For instance, I have a script that draws the login form, the registration form, a script that allows for mp3 uploads, and another that does the mp3 serving. I've also created a module that posts relevant information to a log file whenever I call an instance of it. However, each script is individual, with the exception of the Login screen, which draws a form and then posts to a login.cgi. The account generation works the same. But, for the most part, each acts on its own.
My question:
How do I link this together so that no action is allowed unless the user is logged in? I assume that I should use the login script (the one that receives the post action) to drive everything, but how do I do it? I'm really at a loss here. I would like to have a user log in, a homepage is drawn with options (add mp3, listen mp3, show staistics, etc.) Is it best that I draw some sort of form and with actions set to the different scripts? How do I handle the return from these scripts? Would cookies help in some way?
Other relevant information:
I've done most of my work so far in CGI.pm using the ovid tutorial found on this site and Lincoln Stein's book.
See CGI::Application and CGI::Session with CGI::Application::Plugin::Session.
What you want to implement is gererally called "session management".
look here (how-can-i-add-session-management-to-a-simple-perl-cgi-web-page) for a previous SO question
You might want to also look at these pages to get some background.
https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1044683.html
http://www.dev411.com/wiki/Session_Management_with_Perl