Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:42:57+00:00 2026-06-11T15:42:57+00:00

I am using monkey runner. I have on Screen 1 and I need to

  • 0

I am using monkey runner.

I have on Screen 1 and I need to fill the form of the page and submit.

I need to take the focus to the first field and need to enter the text.

How to give the focus to any text field or can i type any way?

Please let me know..

REgards,
Chandra

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:42:59+00:00Added an answer on June 11, 2026 at 3:42 pm

    Yes, one can focus on a text field and type text in that field.

    I did it using Python. Followings are relevant lines from my code:

    import os, subprocess
    import sys
    import time
    import random
    import string
    import re
    from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
    
    #connect to the device
    device = MonkeyRunner.waitForConnection(99, "emulator-5554")
    

    Then, launch the relevant activity and move to the text field using the press function.

    device.press ('KEYCODE_DPAD_DOWN', MonkeyDevice.DOWN_AND_UP)# move down
    

    Normally, when you reach a text field then focus is already there, but if it is not then click the field.

    device.press ('KEYCODE_DPAD_CENTER', MonkeyDevice.DOWN_AND_UP)#click the field
    

    Now, one can type the text using the type function.

    device.type('text')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one web page where i need to hide some images , some
I have developed an app and have been using Monkey to test it. My
Using the HTML markup <form id=form runat=server> <input id=donkey type=text placeholder=monkey runat=server /> </form>
I'm trying to simulate a click on an Android tablet using monkey runner and
I'm using the monkey tool to run a test of my Android application. For
Using CI for the first time and i'm smashing my head with this seemingly
I am interested in putting a survey (using survey monkey) into a website. I
I have an ImageView with a source image set in the xml using the
I'm using the modernish jquery 1.5 ajax request. To a page on the same
I am using gevent and I am monkey patching everything. It seems like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.