Urgent help needed

Post your questions and help other users.

Moderator: Martin

Post Reply
Waytorajat
Posts: 5
Joined: 27 Aug 2013 06:34

Urgent help needed

Post by Waytorajat » 27 Aug 2013 07:00

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

manuel
Posts: 27
Joined: 05 Jul 2013 20:54

Re: Urgent help needed

Post by manuel » 27 Aug 2013 08:28

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 )

Waytorajat
Posts: 5
Joined: 27 Aug 2013 06:34

Re: Urgent help needed

Post by Waytorajat » 27 Aug 2013 13:08

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.

Waytorajat
Posts: 5
Joined: 27 Aug 2013 06:34

Re: Urgent help needed

Post by Waytorajat » 27 Aug 2013 13:10

One more thing... If anyone knows how to make that flow... Please let me know as I am a noob here..

Waytorajat
Posts: 5
Joined: 27 Aug 2013 06:34

Re: Urgent help needed

Post by Waytorajat » 27 Aug 2013 15:48

Bump.!!!

manuel
Posts: 27
Joined: 05 Jul 2013 20:54

Re: Urgent help needed

Post by manuel » 28 Aug 2013 07:27

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?

Waytorajat
Posts: 5
Joined: 27 Aug 2013 06:34

Re: Urgent help needed

Post by Waytorajat » 28 Aug 2013 20:58

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.

manuel
Posts: 27
Joined: 05 Jul 2013 20:54

Re: Urgent help needed

Post by manuel » 29 Aug 2013 16:25

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.

Post Reply