Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone know the difference of the 2 statements
#1
Solved: 10 Years, 9 Months, 1 Week ago
Please help on the difference of the 2 statements:
1. ...(item).Click
2. ...(item).Object.Click

Thank you in advance.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
Martin,
Have you executed both the statements ? Do you see any difference ?

One method is a direct click while the other was instantiate a object before clicking on it. Hope i am correct...in simple terms there is no difference in the click action.
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
#3
Solved: 10 Years, 9 Months, 1 Week ago
Thank you very much for the reply.

Yes, I had executed both statements and get 2 different response.
1. It will get a run-time error when i play back the script and said "the object is disabled" but I had checked the object ("disabled") property with getroproperty method and returned it was NOT "disabled"
2. the error was fixed.

Therefore, i want to know the exactly the difference between them.
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
Hi
Basically it defines the Object Hirerachy i.e Document Object Model.


1) (item).Click : This will work incase if you are directly accessing the Parent Object(in your case it is 'item').

2)(item).object.click : This means the object which you are trying to access is not a direct object. I mean to say it has one container and on that it is exposed. so to acess that one you need to set to parent class and then search for the Object. This is applicable to Rendering type of object which develop through HTMl Tags or Ajax control.


To understand the difference you need to check 'View --> Source' in IE.

~regards
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Difference in Window Identification Nagaraju6 0 1,983 12-06-2013, 07:08 PM
Last Post: Nagaraju6
  problem in looping statements... navyasatish 5 3,952 02-02-2012, 02:23 PM
Last Post: rajpes
  difference b/w Activex & delphi environment hello 0 2,460 01-10-2012, 03:38 PM
Last Post: hello
Exclamation What is the Difference between Standard, Maintenance and Update Run mode kai07 2 17,943 10-13-2011, 08:52 AM
Last Post: kai07
  difference between loadfunctionlibrary and executefile payal 1 15,331 09-22-2011, 08:33 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)