Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
difference
#1
Not Solved
Hi,
What is the difference between below two steps.

Code:
Browser("Googgle").Page("Google").WebEdit("Search").Set "QTP"

Browser("Googgle").Page("Google").WebEdit("Search").Object.

First line is normally we r using.in second step how we can approach

Regards,
Arul
Reply
#2
Not Solved
second line is to get handle to the web object in the html DOM (in your case it's webeidt).Through this you can get/set any property listed in the "run time object properties" when you spy on the webeidt.

eg:msgbox Browser("Googgle").Page("Google").WebEdit("Search").Object.isContentEditable 'isContentEditable is a property which you can not retrieve through GetRoProperty
Reply
#3
Not Solved
RajPes -
The above statement holds 90% correct except for the last line. "You can retrieve all of the properties using the GetRoproperty as to what you can do through the DOM as well. For eg: oVal = Browser().Page().Webedit().GetRoproperty("isContentEditable") will return a Value 1 or 0 depending upon the settings".
However, the other ease in using the .object is to aid in clear programming.
Code:
Set oObj = Browser().Page().Webedit().object
msgbox oObj.IsContenteditable
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)