GeekInterview.com
Series: Subject: Topic:
Question: 47 of 779

Fetching Object Properties

What is the syntax for fetching object properties at run time?
Asked by: pvsagar | Member Since Oct-2010 | Asked on: Oct 27th, 2010

View all questions by pvsagar   View all answers by pvsagar

Showing Answers 1 - 2 of 2 Answers

Use Objects GetRoProperty to fetch runtime value

Yes  1 User has rated as useful.
  
Login to rate this answer.
automationbug

Answered On : Jun 17th, 2011

View all answers by automationbug

Property of test object can be fetched at runtime using GetROProperty method.
A common use of this is fetching number of items in a Weblist at runtime.

Dim iCount
iCount = Browser("title").Page("name").Weblist("list1").GetROProperty("items count")

Enclose the property name in the parenthesis for which value needs to be fetched.

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.