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 8808269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:34:47+00:00 2026-06-14T02:34:47+00:00

I am using selenium to test an android web app. My test is running

  • 0

I am using selenium to test an android web app. My test is running fine initially but hangs at particular point. It selects the first text field on the web page and writes the values while in zoom-in mode but it hangs at this point and does not select the second text field. Where am I going wrong?

My code is as follows:

public void testRegister() throws Exception
{

            driver.get("file:///android_asset/www/aboutus.html");
    driver.findElement(By.xpath("html/body/div/div/ul/li[2]")).click();
    List<WebElement> w1=driver.findElements(By.tagName("input"));
    System.out.println(w1.size());
    for(int i=0;i<w1.size();i++)
    {
    System.out.println("************");
          System.out.println(i + w1.get(i).getAttribute("id") +"*****" + w1.get(i).getAttribute("name"));

    }

    for(WebElement option:w1)
    {
          String str=option.getAttribute("id");

          if(str.equals("name"))
          {
                 option.click();
                 option.sendKeys("Vaishali");
          }

          else if(str.equals("dateofbirth"))
          {
                 option.click();
                 option.sendKeys("28-09-1991");
          }

          else if(str.equals("club"))
          {
                 option.click();
                 option.sendKeys("Manchester United");
          }

          else if(str.equals("username"))
          {
                 option.click();
                 option.sendKeys("vishchan");
          }
          else if(str.equals("password"))
          {
                 option.click();
                 option.sendKeys("vishchan");
          }
          else if(str.equals("sendbutton"))
          {
                 option.click();

          }

}
  • 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-14T02:34:52+00:00Added an answer on June 14, 2026 at 2:34 am
    1. the id can be ” and it’l return null value
    2. in the list of elements can be hidden element with the same id
      for more reasons please post stack trace.
      Best Regards Taras
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Selenium to test my java web app's html pages (JSPs actually).
i am using selenium with phpunit to test some of my web stuff but
I am writing a test script using Selenium web driver (IE). I had no
I am trying to test a web page using Selenium IDE. Am new to
Is it a good idea to start new test framework using Selenium web driver
I'm using Selenium to unit test my Perl cgi script and all works fine
I am running a selenium test using ruby and was wondering how I can
I am running Selenium test cases by using Callable threads and I am getting
I am using selenium and Rails3 Rspec to do a test for an app
I'm using Selenium IDE to occasionally test my web applications. However, since Selenium IDE

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.