Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-18-2018, 07:53 PM
|
#1
|
Member
Registered: May 2018
Posts: 67
Rep: 
|
Can I do this on Linux...
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?
Thanks.
|
|
|
07-18-2018, 08:04 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I'd say yes.
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.
|
|
|
07-18-2018, 08:08 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 20,009
|
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.
|
|
|
07-18-2018, 08:36 PM
|
#4
|
Member
Registered: May 2018
Posts: 67
Original Poster
Rep: 
|
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.
let me know what you think.
thanks.
|
|
|
07-19-2018, 12:49 AM
|
#5
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
IronAHK is a tool much like AHK. https://github.com/Paris/IronAHK
|
|
|
All times are GMT -5. The time now is 04:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|