Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
An important update from QtpSudhakar. I stopped giving classroom training in MindQ Systems. I have bigger plans and I want to put an end to regular classroom training because very less people are practicing. From now onwards every session of mine is going to have explanation and practice. Everyone should practice in presence of mine and should go out of classroom with practical knowledge. So I started my own institute AnyTechLabs in Madhapur. Please reach out to +91-8328152362 for course details. Visit AnyTechLabs.com for address details.
Selenium + Cucumber 24th October 7.30 AM IST to 9.00 AM IST 45 Days WeekDay Online

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

Monday, March 9, 2009

Get Runtime Object Properties for a web Object


To get Runtime object properties we should use a property called "Object". This property is available for all web objects.
The property "object' enables you to access any RO method / property for a web object.

Syntax:-
'Accessing properties for web button
Browser("Google").Page("Google").WebButton("Google Search").object.propertyname

Ex:-

'To Get RO Property
msgbox Browser("Title:=Google").Page("Title:=Google").WebEdit("name:=q").object.title ' Gives tool tip of a webedit 

'To set some text using RO Property
Browser("Title:=Google").Page("Title:=Google").WebEdit("name:=q").object.value="test"   ' Set text in webedit

No comments :

Post a Comment