Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Step 1:
I have a form on a HTML page.
I want to copy all relevant fields and store in variables - available for use later.
Step 2:
In another browser window, use the fields copied and fill in another form.
Step 1: I could just analyse the HTML and get the data I suppose (this is the nest way). But is there a way I can start on field one, and simulate tabbing through each field? This is the way I am currently doing on Windows with the help of another program.
Step 2: in Windows, I use some code to simulate tabbing through the different fields and pasting in the variables stored. I'm assuming I can use Python - but don't have enough experience of this. Is there any other way?
For the most part a HTML server provides what the author wants you to be able to have. Modern pages don't tend to be simple text. Without knowing more I couldn't guess what is the best way to grab that data and automate it.
HTML is platform independent. If it works in Windows, it should work in Linux, etc.
If you are doing this on a web form and wonder whether you can do it on Linux, I must assume you are using some proprietary method. It might help persons answer your query to have more information about what methodology you are using now.
thanks for the replies guys.
currently i use AHK (autohotkey) - this helps me simulate just about everything on windows - including mouse movements.
there's at least one other program called autoIT that does the same (never used that one though).
it's kind of cheating...
with basic programming and using current windows interfaces... you can automate any app where you do manual repetitive tasks.
where would i start for looking up how to simulate the user filling in a form?
using AHK, you can make it pretty advanced and actually submit the entire HTML form and give the server what it's expecting. (involves using COM object of internet explorer.)
i'm assuming there will be a clever way to do using linux scripting as well... but even though this is a better solution... no good for me... i need to be able to glance and see manually that the correct fields have been copied. so i need the simulated way described.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.