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
Urgent help needed
Moderator: Martin
Re: Urgent help needed
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 )
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 )
-
- Posts: 5
- Joined: 27 Aug 2013 06:34
Re: Urgent help needed
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.
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.
-
- Posts: 5
- Joined: 27 Aug 2013 06:34
Re: Urgent help needed
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
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.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.
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?
-
- Posts: 5
- Joined: 27 Aug 2013 06:34
Re: Urgent help needed
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
For the Action you need to select http request.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.
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>
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.