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
    Jul 2004
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to do a Checkpoint for object not found

    You know how you can have a checkpoint that checks whether a particular text is not displayed? Well I need to do the exact same thing but for an object.
    Does anyknow know how to do this? I just need to verify that the object is not present.
    I tried the method Exist but it doesn't seem to work.
    Thanks

  2. #2
    Super Member
    Join Date
    Oct 2004
    Posts
    1,222
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to do a Checkpoint for object not found

    Yes I know.
    (I'm hiring Software Development Engineers in Test in Seattle, WA)

  3. #3
    Super Member
    Join Date
    Oct 2004
    Posts
    1,222
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to do a Checkpoint for object not found

    Ok here's how.
    .Exist should work, just use it with an If statement like so...

    If Browser("blah").Page("blah blah").WebElement("innertext:=some text").Exist(2) Then
    Reporter.Reportevent 1, "Object Exists", "Unexpected object exists"
    Else
    Reporter.Reportevent 0, "Object Does NOT exist", "Object is not found"
    End If

    ----- Change the WebElement to WebButton or whatever your object is.
    (I'm hiring Software Development Engineers in Test in Seattle, WA)

  4. #4
    Member
    Join Date
    Dec 2001
    Location
    Philadelphia, PA
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to do a Checkpoint for object not found

    Right, your not using exist correctly.
    Christopher Emerson

    qatips.blogspot.com

 

 

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 08:22 PM.

Copyright BetaSoft Inc.