How to create a run time propertyfor an object?

Answer Posted / kiran1783

'The following example uses the SetTOProperty method to set
the

'html id of the WebFile object.



Browser("Fill-Out-Form").Page("Fill-Out-Form").WebFile
("name-of-files").SetTOProperty "html id", 4

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository and how QTP recognizes objects?

634


What is method name to compare two XML files.

1633


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1941


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1776


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3301






To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1525


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2657


wt is the use of multiple questions in QTP

1774


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


What is qtpro? What is quick test pro? What is a quick test professional?

684


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1666


Hi All, I need code for how to execute qtp scripts from excell sheet

1544


Give the syntax to import/export xls into qtp.

671


What is the limitation to XML Checkpoints?

1702


desribe a situation where u faced a stressful situation and how did u cope with it

1501