SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2002
    Location
    Nuremberg, Germany
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How exactly does the position tag work?

    I'm testing a C++ application using SilkTest 6.0. I have two TextFields A & B in my frame file; A's only(!) tag is the position tag, say (a1,a2); B instead is recognized by several tags including the position (b1,b2). These two coordinates are different (a1!=b1 && a2!=b2).

    Now the GUI allows only one of these 2 text fields to be visible at the the same time, and here's where my question arises: Suppose A is invisible and B is visible - then SilkTest states that A(!) is visible.

    Up to now I thought the position tag is an "exact" one, that means: Only if a TextField has coordinates (a1,a2) then SilkTest would be able to claim "This is TextField A" since this is A's only tag. But the visible TextField B is carrying different (only slightly "near-by") coordinates - and SilkTest says: "Yes, A is here." Obviously my understanding of the position tag and how it works wasn't complete.

    Furthermore, this phenomenon came first after switching from ST5.5 to ST6.0, and now I'm slightly confused. Can anybody please explain what happens here?

    Thanks a lot,
    cb

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How exactly does the position tag work?

    Do the returned GetRect() values of these objects overlap?

    Do both objects appear in the results of a GetChildren() call even when one is invisible?

    What do the tags look like?

    John

  3. #3
    Member
    Join Date
    Jan 2002
    Location
    Nuremberg, Germany
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How exactly does the position tag work?

    Hi John,

    thanks for dealing with this issue. Here are the answers:

    (1) Yes:
    A.GetRect(): (322,88,57,24)
    B.GetRect(): (316,80,73,24)

    (2) The GetChildren() list looks as follows:
    B visible, A not => B is in list, A not
    A visible, B not => again: B is in list, A not

    (3) The tags:
    TextField A: tag "@(350,100)"
    TextField B: multitag "@(352,92)","#2"

    Hope this helps!
    cb

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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:01 PM.

Copyright BetaSoft Inc.