SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2003
    Location
    Chennai
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Tracking & triggering click event on buttons

    The Problem Description is a bit lengthy, sorry for that.

    Problem Description:

    When I click the button labeled new in the HTML page a set of 5 buttons namely (Edit, Copy, Order, Delete and Above) Will be created and displayed just below the new button.Now if I click on the delete button this set of 5 buttons(Edit, Copy, Order, Delete and Above) will be removed.If the new button is continuously clicked for 15 times then 15 * buttons will be created and displayed.Out of this there will be 15 delete buttons.
    I need to ensure that there is no delete button in the screen before I start to run my other scripts.I am in need of a procedure to find out how many delete buttons are in the screen and click then one by one un till there is no delete button.

    If anyone could help me regarding the same it would be of great use.

    M.Alfred Beryl
    India
    M.Alfred Beryl Mathavan
    Technical Lead
    Mail ID : catchalfred@yahoo.com

  2. #2
    Member
    Join Date
    Dec 2003
    Location
    Chennai
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tracking & triggering click event on buttons

    I am sorry there is a small correction in the middle of the above paragraph.

    The corrected sentence is:

    If the new button is continuously clicked for 15 times then 15 * 5 buttons will be created and displayed

    M.Alfred Beryl
    India
    M.Alfred Beryl Mathavan
    Technical Lead
    Mail ID : catchalfred@yahoo.com

  3. #3
    Senior Member
    Join Date
    Nov 2002
    Location
    Chennai,Tamilnadu,India
    Posts
    111
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tracking & triggering click event on buttons

    My suggestion will be to try getmappablechildren to get all the buttons in the screen, inspect it properties for the caption "delete". Click it until all the buttons are killed.
    Prasanna.
    CT, USA.

    Trust, but verify.

  4. #4
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tracking & triggering click event on buttons

    you'll have to use getMappableChildren on the parent object of those buttons. If they all have different parents, then you'll have to do this recursively. A search on "getMappablechildren" should reveal a couple of posts on how to do this.

  5. #5
    Member
    Join Date
    Dec 2003
    Location
    Chennai
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tracking & triggering click event on buttons

    Mr.Prasanna and Mr.Cyblue That's a good Idea but I have already tried those methods.It works but there is still a problem.

    Suppose if there are 5 delete buttons and if I apply the method that you suggest the script successfully clicks on 1 or 2 sometime 3 buttons but it is not clicking all the delete buttons.
    I have given enough time after clicking each delete button to leave the page to reload.

    I once again thank you for your valid suggestions.

    Alfred Beryl Mathavan
    Jr Consultant -India
    M.Alfred Beryl Mathavan
    Technical Lead
    Mail ID : catchalfred@yahoo.com

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:21 PM.

Copyright BetaSoft Inc.