SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Class ID properties of objects

    Hi! I recorded a radio button object that's the same throughout our application. I created a method for this radio button so I can just call it. Apparently, it doesn't work in all of them. I went to view the source of the the application (pages are generated by our webframework) and noticed class id is different, that maybe the reason why XDE doesn't recognize some of the objects that's different from what I have initially recorded.

    <input title="" class="" id="16" name="copyIndicator" value="FORWARD"
    type="radio">Copy Forward

    <input title="" class="" id="13" name="copyIndicator" value="FORWARD"
    type="radio">Copy Forward

    Any tips? Thanks!

    Ray

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Posts
    388
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Class ID properties of objects

    Id is often programmer assigned. In your case the "webframework" may have generated the id as part of its compile. If the latter is the case, you may never be able to include the id as part of the object identifier/map.

  3. #3
    Member
    Join Date
    Oct 2001
    Location
    New York, NY
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Class ID properties of objects

    You said that your application has the same button on each page. There are two things you need to know about objects that the documentation does not make clear:

    1. When you record an action against an object (such as clicking in your radioi button), the tool adds not just the object you performed your action on, but the parent of that object, the grandparent, and so on.... all the way up to the top level window (browser frame in your case).

    2. When the tool looks for the radio button at runtime, it identifies it not only by the recognition properties of the radio button, but by the recognition properties of *every* ancestor object -- all the way up to the browser frame.

    How is this affecting your scripts at runtime? If the radio button was added to the object map when page A was loaded, the HTMLDocument for page A was be added to the map. The HTMLDocument will be identified by, among other things, the title and URL, which are most likely different on each page. It is quite possible that there are other objects between the HTMLDocument and your radio button - objects whose recognition properties will vary depending on the page that's loaded in the browser.

    Solution: use regular expressions in the object map.

  4. #4
    Junior Member
    Join Date
    Jul 2003
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Class ID properties of objects

    Thanks alot! That helps!

 

 

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 05:52 PM.

Copyright BetaSoft Inc.