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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:36:37+00:00 2026-06-18T08:36:37+00:00

I am trying to test a webpage in selenium that is created using angularjs.

  • 0

I am trying to test a webpage in selenium that is created using angularjs. On this page are a text fields the user will fill out. As the user is typing in the text fields angular will pickup every keystroke and display a preview on the fly exactly how filling out a stackoverflow question generates a preview. 🙂

My issue is I cannot figure out how to test it. If I click on the text field and type it works. I have tried, the selenium type command, typeKeys command, using the mousedown and mouseup command and then typeKeys to try to mimic a user typing. But they are not working as if there are event handlers not being triggered. I need to mimic the way a human types so the events will trigger. This is what I am thinking but it doesn’t work.

<tr>
  <td>mouseDown</td>
  <td>name=appName</td>
  <td></td>
</tr>
<tr>
  <td>mouseUp</td>
  <td>name=appName</td>
  <td></td>
</tr>
<tr>
  <td>typeKeys</td>
  <td>name=appName</td>
  <td>foobar</td>
</tr>

If there is a way using javascript that will be acceptable too. Thanks.

  • 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-18T08:36:39+00:00Added an answer on June 18, 2026 at 8:36 am

    I was having the same issue with testing Angular JS form fields using Selenium IDE. I tried just about every known combination of focus, click, clickAt, keypress, etc. Finally found that what worked was using the sendKeys command to put the text into the field. So in Selenium-IDE, the command was

    sendKeys | xpath=(//input[@type='text'])[2] | TEXT To Enter
    

    Note that I used the xpath, but it didn’t matter what I used to identify the target (css=, xpath, //div), any of the identifiers worked, it just took using sendKeys to do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to test a web page using Selenium IDE. Am new to
I'm trying to write a Selenium test for a web page that uses an
I've trying to get some vertical text on a little test webpage after reading
Im trying to test my successfully creates a new user after login (using authlogic).
I am trying to make an if statement that will test a string in
I have a html page using javascript that gives the user the option to
I'm trying to find text on a webpage that's not marked with a specific
I am trying to test a webpage using Nessus. I have tested all the
I am trying to scrape only the test information from a web page which
just trying to test for equality in this piece of code, but getting a

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.