Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getElementByid("myObhectId") return null???
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thank you for your answer Ravi
but probably i did not explain fully the problem :

myObhectId is not an object that i have in myobject repository
now i want check if getElementById("myObhectId") returns me an object present in the page.

wrote my function as you did

Code:
set input=Browser("title:=.*").page("title:=.*").Object.getElementByid("myObjectId")

If  isobject(input) Then
    input.Click
End If


if i set an object id of an webutton present in my page it works correctly
but i need to check if getElementByid returns me no objects :

now if i write a wrong object id it still tries to do input.click
i don t know why isobject is not working how it was expected
but probably i don t know how getElementByid works

thank you
Reply


Messages In This Thread
RE: getElementByid("myObhectId") return null??? - by qtptester - 01-31-2013, 01:33 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,055 07-08-2011, 12:57 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 2 Guest(s)