Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getElementByid("myObhectId") return null???
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hello
I tried to look for the answer to my question before open a new topic but i did not founded it
i try to get and object of type webbutton from my application :

Code:
set input=Browser("title:=.*").page("title:=.*").Object.getElementByid("myObhectId")
then i clcik on it :

input.click

i have problems when the object is not present in the page
how can i test if getElementByid("myObhectId") returns an objecT?
i tried with following methos
isnull(input)
isobject(input)
but thet seem not work

thank in advance for your help
Dave
Reply


Messages In This Thread
getElementByid("myObhectId") return null??? - by qtptester - 01-30-2013, 09:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Function return value is not passed during the 3rd iteration premanand1979 0 2,260 10-16-2014, 09:40 PM
Last Post: premanand1979
  how to remove null values in array venkatesh9032 0 2,895 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  GetRoProperties("enabled") returns null? RandomGrin 3 7,433 02-28-2013, 11:27 PM
Last Post: RandomGrin
  Null value of the object swapna_gupta08 4 11,813 02-21-2012, 11:00 AM
Last Post: inborntester
  QTP Test results will return exit codes asrivastava 13 17,067 07-08-2011, 12:57 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 2 Guest(s)