SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: window is not unique

    Try a Record/Declarations of that page on both PC's and compare the results line by line.

    John

  2. #2
    Junior Member
    Join Date
    Jul 2003
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    window is not unique

    Hi All,

    I am having a unique problem. I have a a testcase which verifies existance of a HtmlText starting with a standard text. There is only one occurance of the text in the page. I am trying to verify the existance using exists statement

    Browser.BrowserChild("abcd").HtmlText("Standard Text*").Exists(3)

    When I run this on one computer the testcase passes. When I run this on another computer testcase fails saying [HtmlText]Standard Text*" is not unique.

    But when I see the page at the end of run there is only one occurance of this text. I actually captured all the HtmlText objects in the page to see if silk is getting any other hidden text. But the result shows that there is only one occurance.

    I don't know how to fix this problem. Has anyone faced a similar situation ?

    Any help is appreciated.

    Thank you,
    Gopal

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: window is not unique

    Set Agent.Setoption(OPT_VERIFY_UNIQUE, FALSE) before the 'Exists' line and try

    -Gauarv

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    NY,NY,USA
    Posts
    103
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: window is not unique

    Why not use a GetText() and parse it or GetProperty("Text")

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

    Re: window is not unique

    Thanks for replies. I tried all of them.

    John,
    I did that. They are similar.

    Gaurav,
    I can set agent option to false as you mentioned but thats just a work around. I am interested in more than that.

    Russromei,
    I cannot use GetText() as I don't know whether that text exists or not. I will have to read all text objects that would take lot of time. I don't want to do that.

    Thank you all again,
    Gopal

  6. #6
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: window is not unique

    Gopal,

    Browser refers to the active browser window. I hope you don't have more than one browser windows on your another machine with some other web-page with title abcd loaded that contains more than one StandardText* text objects [img]images/icons/tongue.gif[/img] . though I hardly believe this would be the case. Try putting a GenerateDecl after you set your browser active and see what you get. Can also post that here.

    Thanks and Regards,
    Harshil

 

 

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 9.38%
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 04:28 PM.

Copyright BetaSoft Inc.