Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getElementByid("myObhectId") return null???
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
It means it is not returning any object. Please make sure that you are giving the right html id for the button you are trying to retrieve.
Example: on gmail login page the following msgbox displays true
When it doesn't find an element with specified id, qtp throws 'object required' error
Code:
set oBtn=Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").object.getElementById("signIn")
If  isobject(oBtn) Then
    oBtn.Click
End If
Reply


Messages In This Thread
RE: getElementByid("myObhectId") return null??? - by ravi.gajul - 01-31-2013, 09:35 AM

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,046 07-08-2011, 12:57 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 2 Guest(s)