Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about a specific checkpoint I'm trying to create
#1
Not Solved
I want to create a checkpoint that looks for a certain image on a webpage, and if it can't find it, then the checkpoint is passed.

My reasoning is this. In a settings window I set something to be read only, and when it is set to read only, when I view that object, some buttons should not exist that do exist when it is not in read only mode.

Thus, I want to have a checkpoint that searches for these buttons that should not exist, and when it can't find them, it passes.

Thanks
Reply
#2
Not Solved
Anyone? Is this possible?
Reply
#3
Not Solved
Code:
result=Browser("Automation Site | Edit").Page("My Site").Image("help icon").Check( CheckPoint("about"))
if result then ' button found - checkpoint passes
   Reporter.ReportEvent micFail, "Step 3, "The help icon was found when not expected"
   ExitAction
Else ' checkpoint failed - button NOT found
    'do some other stuff
End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to open IE/Chrome/Firefox with a specific size? DarkestAmadeus 0 2,067 07-19-2018, 05:38 AM
Last Post: DarkestAmadeus
  Check specific links of a webpage rocky9 1 2,781 06-11-2015, 06:23 PM
Last Post: venkatesh9032
  Another checkpoint question bistritapcv 1 1,897 04-05-2013, 08:56 AM
Last Post: Ankesh
  Pass specific design steps in QC through QTP TurtleRock 0 1,766 09-06-2012, 01:23 PM
Last Post: TurtleRock
  Count number of webelement with specific names kalaivanan123 2 4,771 07-31-2012, 11:52 AM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)