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
    Jun 2008
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to compare old & new value after changing?

    I want to retrieve all values in a webpage,like webedit,radio,weblist,webcheckbox
    .using getroproperty I retrieve all values,,here i want to change all values &
    I am saving,
    then here i want to verify in 1 grid with what object,what is old value, what is new value?
    Need to verify application changes reflects in grid or not?

  2. #2
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to compare old & new value after changing?

    and? ...


    Janna

  3. #3
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to compare old & new value after changing?

    Basic way: Use Excel

    1. List your objects
    2. Run the script and write old values
    3. Run the script and write new values
    4. Compare
    -Suchit

  4. #4
    Advanced Member
    Join Date
    Feb 2008
    Location
    Ahmedabad, India
    Posts
    550
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to compare old & new value after changing?

    If the objects in the page is much more... then It's better you use the descriptive programming to get the particular kind of object and It's value..

    Before you set the new value. Get the original value and save it in some excel sheet and then set the new value you want from the same excel sheet..

    code underneath might help you ....[img]/images/graemlins/smirk.gif[/img]

    <font color="red">
    Set MyDescription = Description.Create()

    MyDescription("html tag").Value = "INPUT"

    MyDescription("type").Value = "text" 'to retrieve all the edit boxes from the page

    Set Checkboxes = Browser("...").Page("...").ChildObjects(MyDescript ion)

    NoOfChildObjs = Checkboxes.Count

    For Counter=0 to NoOfChildObjs-1

    Checkboxes(Counter).Set DataTable("Value",dtLocalSheet)

    Next

    </font>

    the same way you can do for other type of objects...
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

 

 

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.00%
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 06:17 AM.

Copyright BetaSoft Inc.