Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic data - need to check if the value exists
#1
Not Solved
Getting an error "The step failed. The object was not found"
How can I insert a check to see if this value exists or not? To avoid having my test fail. Should I use an If Then Else statement? Or what do you suggest?

This is the step failing (below)- I am dealing with dynamic data so sometimes this will succeed and grab the output value but other times it will not if the value is not present.

Code:
Browser("V_2").Page("V_5").Link("Bot5").Output CheckPoint("storeBot5")
Reply
#2
Not Solved
As the error says "object was not found", you chould first check for the pbject whether it exists or not then do your output.
Yes, I think you should use IF Else statement for this.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,336 03-09-2016, 02:43 PM
Last Post: vinod123
  Webtable Checkpoint to get cell data from dynamic WbfGrid Neetha 1 3,473 08-20-2015, 11:43 PM
Last Post: ADITI1992
  How to check whether data exists in excel.. venkatesh9032 1 3,077 03-06-2014, 04:37 PM
Last Post: supputuri
  Object does not exists shwetasharma 4 9,103 03-01-2013, 01:05 PM
Last Post: shwetasharma
  Verifying the value exists and if not, wait up to 5min HeZma 3 4,064 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)