SPONSORS:






User Tag List

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

    Size limit to property-value input?

    Using QTP 10.00 for desc prog with vbscript.

    My issue:
    <font class="small">Code:</font><hr /><pre>Set objCollection = Browser(oBrowser).Page(oPage).ChildObjects(obj)
    </pre><hr />

    The obj I am trying to identify has an outertext value &gt; 250 chars.

    Let's say that I want to identify an object by its outertext value. If the value that is loaded into 'obj' for outertext is less than 250 chars with some regex appeneded, the object will be identified.

    However, if I put 251+ chars in with the same regex appended, the object will NOT be identified.

    Any ideas? <font class="small">Code:</font><hr /><pre> </pre><hr />

  2. #2
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Size limit to property-value input?

    U are using 251 chars and also regex, do u have another property that can be used instead of the outertext. I feel using regex, u would not need so many chars for obj recognition. Can u post the code, if you are allowed to?.
    Thanks,
    Ganesh Iyer
    Winds of Change

  3. #3
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Size limit to property-value input?

    dennis00,

    Check this post.

    http://www.sqaforums.com/showflat.ph...;Number=646834

    Try the last solution in this post, first. If the number of characters exceeds 255, then try the previous solution regarding editing the registry.
    Rajkumar

  4. #4
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Size limit to property-value input?

    Raj,

    The registry option is to add a new entry to the registry. I would like to know, how does QTP really identify such an entry the registry coz this is not pre packaged with qtp.
    Thanks,
    Ganesh Iyer
    Winds of Change

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Size limit to property-value input?

    Thanks Raj and Smiles. I am going to give this a try in a bit.

 

 

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:36 AM.

Copyright BetaSoft Inc.