Page 1 of 1
Urgent help needed
Posted: 27 Aug 2013 07:00
by Waytorajat
Hi Team,
Please help me in making a flow by which I can make a click on a button on a website and to input text in the text field of a website.
My phone is Samsung Note 2
Android 4.1.2
Not Rooted
Re: Urgent help needed
Posted: 27 Aug 2013 08:28
by manuel
I guess you can't write in a field from Automagic because you need to manipulate the page objects for that.
What you can do is simulate a form submit by using http request. For that you need to know the name of the field in the page and the URL of the submit button.
If you give more specific details I can help you further (provided that this approach is valid )
Re: Urgent help needed
Posted: 27 Aug 2013 13:08
by Waytorajat
Hi..
Thank you so much for a prompt response...
Let Me try to explain you the scenario...
There is a login page with username password and pin number inputs and has a submit button. I need to make a flow for this so that it could enter everything itself when I shake the phone and don't want my browser to remember it.
Thanks and sorry for any confusion caused.
Re: Urgent help needed
Posted: 27 Aug 2013 13:10
by Waytorajat
One more thing... If anyone knows how to make that flow... Please let me know as I am a noob here..
Re: Urgent help needed
Posted: 27 Aug 2013 15:48
by Waytorajat
Bump.!!!
Re: Urgent help needed
Posted: 28 Aug 2013 07:27
by manuel
Waytorajat wrote:Hi..
There is a login page with username password and pin number inputs and has a submit button. I need to make a flow for this so that it could enter everything itself when I shake the phone and don't want my browser to remember it.
I'm afraid this can't be done in Automagic. You can open a URL in the browser
or you can send the user and pin to the URL and recover the data it returns, but you can open the browser and enter the data in the fields.
May be the second alternative is enough for you? What appears when you enter the user and pin? Is that what you want or you need to proceed further?
Re: Urgent help needed
Posted: 28 Aug 2013 20:58
by Waytorajat
Thank you for the response... Yes, second option is enough.... So please let me know how to make a flow for it.... Please take any dummy site for example.
Re: Urgent help needed
Posted: 29 Aug 2013 16:25
by manuel
Waytorajat wrote:Thank you for the response... Yes, second option is enough.... So please let me know how to make a flow for it.... Please take any dummy site for example.
For the Action you need to select http request.
Then you need to inspect the code of the page you want to login.
It should be something like:
Code: Select all
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user">
Password: <input type="password" name="password">
<input type="submit" value="Submit">
</form>
Lets suppose that the page is in
http://www.dummysite.com/form.
Then:
- The URL field for the Action should be
http://www.dummysite.com/form/html_form_action.asp (I got the full URL from the "action" part of the form header)
- The request method should be "POST"
- Leave the content type as is
- In the form field list, you should put something like user=TheUserName,password=ThePassword (I got the names of the fields from the "input" fields in the form content), where TheUserName and ThePassword are your username and password for the page.
After that, when you execute the flow the response from the server will be in the "response" variable for you to use.