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
    Mar 2006
    Location
    India
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting the Run Time objects

    Hi all,

    I have a doubt in identifying the run time objects.

    I have an application where in it displays a new webEdit object whenever the <+> image in the corresponding row is clicked.

    I recorded the WebEdit object as well the <+>( Add a New Row button) for the first row and for the Number of inputs we give, it should do the same process dynamically.

    Eg:
    In the first row, after giving the EmplID, we have to click the <+> to add a new row.

    Browser("A").Page("B").Frame("C").WebEdit("TL_RUN_ CTRL_GRP_EMPLID$0").set "E1234"

    Browser("A").Page("B").Frame("C").Image("Add a new row at row 1").Click

    When I click this <+> image button,the next row with the name "TL_RUN_CTRL_GRP_EMPLID$1" will appear and I need to give the next input value. But since the index value is incrementing each time, when I tried to give the value it shows the object "TL_RUN_CTRL_GRP_EMPLID$1" is not found in the Object Repository.The same way with the image button "Add a new row at row 2".

    I tried to get the index value by using getROProperty("html id") and incremented it. But when i try to set the incremented index value using setTOProperty, again it shows the same error message. Without recording the "TL_RUN_CTRL_GRP_EMPLID$1", how can I get these dynamic objects into OR?

    Could any one please help me out in this regard?

    Thank You!

    Regards,
    Angelin.

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Getting the Run Time objects

    Use Descriptive Programming.

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Location
    Hamburg, Germany
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting the Run Time objects

    Hi Angelin,
    At the moment where you add object dynamically to the screen during the run of the test, they will not be in the OR. As Tarun mentioned you will have to use descriptive programming to be able do things like:

    Browser("A").Page("B").Frame("C").WebEdit("name:=T L_RUN_CTRL_GRP_EMPLID$"&int_count).set "E1234"

    int_count would be your counter to be increased for each additional line.

    You will find some info under "Programmatic Descriptions" in the helpfile.
    Regards
    Bulla

    --- a fool with a tool is still a fool ----

  4. #4
    Junior Member
    Join Date
    Mar 2006
    Location
    India
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting the Run Time objects

    Thank you Tarun and Bulla.

 

 

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 11.54%
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 12:05 AM.

Copyright BetaSoft Inc.