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 1,919 07-19-2018, 05:38 AM
Last Post: DarkestAmadeus
  Check specific links of a webpage rocky9 1 2,547 06-11-2015, 06:23 PM
Last Post: venkatesh9032
  Another checkpoint question bistritapcv 1 1,728 04-05-2013, 08:56 AM
Last Post: Ankesh
  Pass specific design steps in QC through QTP TurtleRock 0 1,653 09-06-2012, 01:23 PM
Last Post: TurtleRock
  Count number of webelement with specific names kalaivanan123 2 4,431 07-31-2012, 11:52 AM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)