08-26-2010, 04:40 PM
Please help on the difference of the 2 statements:
1. ...(item).Click
2. ...(item).Object.Click
Thank you in advance.
1. ...(item).Click
2. ...(item).Object.Click
Thank you in advance.
Anyone know the difference of the 2 statements
|
08-26-2010, 04:40 PM
Please help on the difference of the 2 statements:
1. ...(item).Click 2. ...(item).Object.Click Thank you in advance.
08-27-2010, 07:12 AM
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.
08-27-2010, 02:06 PM
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.
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 |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Difference in Window Identification | Nagaraju6 | 0 | 2,071 |
12-06-2013, 07:08 PM Last Post: Nagaraju6 |
|
problem in looping statements... | navyasatish | 5 | 4,189 |
02-02-2012, 02:23 PM Last Post: rajpes |
|
difference b/w Activex & delphi environment | hello | 0 | 2,581 |
01-10-2012, 03:38 PM Last Post: hello |
|
What is the Difference between Standard, Maintenance and Update Run mode | kai07 | 2 | 18,271 |
10-13-2011, 08:52 AM Last Post: kai07 |
|
difference between loadfunctionlibrary and executefile | payal | 1 | 15,700 |
09-22-2011, 08:33 PM Last Post: Saket |