what is native operation of object? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: what is native operation of object? (/Thread-what-is-native-operation-of-object) |
what is native operation of object? - vijay.gupta - 08-04-2011 Can anyone please let me know, what is native operation of any test/run time object? I was reading about this on net. I was not able to understand this from their explanation. Following is the excerpt: "Native operations are the methods of the object in your application as defined by the object creator." Can anyone please explain this by giving example of object and its native operation? RE: what is native operation of object? - sshukla12 - 08-04-2011 Native properties of object come in picture when accessing the DOM. We can access the native properties & methods of any run time obejct in ur application using the object property. Code: set ff=Browser("Google").Page("Google").Object. RE: what is native operation of object? - vijay.gupta - 08-04-2011 Thanks sshukla12 for the information but what I need is the definition of native operation and why it is called native? I also need example like: which operation is native and which is non-native in case of any object (for eg: a button)? RE: what is native operation of object? - sshukla12 - 08-04-2011 Hi Vijay, Native properties refers to the internal operation of any run time object.Like setting the focus on txtbox, checking the disabled propety of button. These native properties are set by the developer at the time of desiging the object and as a automation tester we cann,t access these native properties directly, so we have to use the .object properties to access them. For button native properties can be: 1)Checked 2) Childnodes 3)Disabled etc. RE: what is native operation of object? - vijay.gupta - 08-04-2011 Thanks sshukla12 for reply. Can there be any operation that is non-native for any object? Please give me example so that I can understand it more easily. For eg: Click operation can be performed on Button object but how do I know that it is a native/non-native operation? RE: what is native operation of object? - uday2487 - 03-12-2012 Can anyone clarify my doubt, It is related to this topic. "In IE8 Browser, I couldnt get the native properties for Browser" Browser.object.hwnd --Property is not working. I'm trying to maximize the browser using the hwnd property |