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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:05:39+00:00 2026-05-15T15:05:39+00:00

I have following structure of web application, for which I’m automating testing: <em unselectable=on

  • 0

I have following structure of web application, for which I’m automating testing:

<em unselectable="on" class="x-btn-split">
        <button type="button" class="x-btn-text " id="ext-gen523" title="Add Options">Add</button>
</em>

Both objects has event listeners,added viw JavaScript in some linked js-file (I don’t know what file exactly).

After clicking on button “Add” with mouse, calls AJAX function calls and row adding to some table, after clicking on em element, opens application menu.

I try to reproduce clicking on button ADD via VBScript (as I say, I’m automating testing of this application),instead of adding row into table, application menu opening. But I know exactly, that I’m clicking button Add, but not em-element.
PseudoCode, that do so:

set obj = domHelper.GetElementByClassName(container,"x-btn-text","button")
obj.click

Please, let me know If you know reasons for this behavior, because I’m really don’t know what to think. (I’ve tried many different approaches to fix this, but nothing helped)

Thank you!

  • 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-05-15T15:05:40+00:00Added an answer on May 15, 2026 at 3:05 pm

    click, like most events, ‘bubbles’ up through all ancestor elements. When you click the <button>, yes, you’re also clicking the <em> that contains it.

    If the event handler for the <em> needs to know that the click was directly in the content area of the <em> but not any of its children, it should look at the event.target (srcElement in IE<9) property to check that the click is on itself, or not on the button, before opening a menu. Alternatively, if the button’s click handler calls event.stopPropagation() (cancelBubble= true in IE<9), then the event will stop and not pass up any further.

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

Sidebar

Related Questions

I have the following structure in a Java Web Application: TheProject -- [Web Pages]
I am working on a legacy application which have a .war with following structure
I have a web application with a following structure: src + main +-+ java
I have a web application with the following structure: TOMCAT_HOME | webapps |_myapp |-html/
Say I have an application with the following structure. // ASP.NET MVC (Web Project)
I have the following structure: class Base { } class Child : Base {
I have the following structure public class MyClass : MyBaseClass<System.Int32> { } In a
I have a large application (~50 modules) using a structure similar to the following:
I have a callback function within an ASP.NET Web Forms application which I am
I have a web application which needs to support multiple languages. We currently have

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.