SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to compare the property value of HTMLTable if it contains spaces??

    User good day (vanchatin@yahoo.com.nospam) posted:

    Hi

    How to compare the property value of
    HTMLTable??
    I am using RationalRobot v2001A. I want to compare the
    values which are displayed in page with the values
    which i have in database.
    For this i am trying to get the "innerText" of
    HTMLTable (the table which i want) like this:

    Dim projSumm As Variant
    Result = SQAGetProperty("Type=HTMLTable;Index=9",
    "innerText", projSumm)

    The innerText value in "projSumm" is having the spaces
    also. Bcoz of these spaces i am not able compare the
    results.
    if i display "projSumm" it is coming like this:
    Project Name:
    test2

    Project Leader:
    Vide

    Authenticator:
    Authent1

    Lead Investor:
    Aff
    Current Stage:
    COMPLETED

    I am forming a string with the static and dynamic
    values(from database).
    This string will be like :

    "Project Name:test2Project
    Leader:VideAuthenticator:Authent1Lead
    Investor:AffCurrent Stage:COMPLETED"

    Please tell me,
    How to get the value of a property with out spaces??
    Or is there any work around for this???
    Or Is there any way for comparing the property
    values???


    Thanks
    vanchatin

    __________________________________________________

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to compare the property value of HTMLTable if it contains spaces??

    User Jane McGloin (Jane.McGloin@invetech.com.au.nospam) posted:

    have a look at the getField function passing it a delimiter of " " (a
    space), but also have a look a the string handling functions (help titled
    String Functions).
    Other options are to use DataVP, objectVP etc

    Rgds jane


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to compare the property value of HTMLTable if it contains spaces??

    User (Satya.Kandagatla@metavante-eb.com.nospam) posted:

    We can remove the spaces programmatically and concatenate the string before
    comparing to the baseline. I think we have to make sure we are only removing
    the blank spaces.
    Use Instr and mid functions.
    Thanks
    Satya


 

 

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 13.64%
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 08:17 AM.

Copyright BetaSoft Inc.