I have the script like this:
Browser("Philips Web Login").Page("Philips CL DMS2
Application").Frame("ScopeFrame").Link("DC3701737
(Active)").Click
in which the value "DC3701737" will get changed and i have
to use the same value in so many places.
If i want to get that value "DC3701737" in to a variable,
how?
pls let me know if you didn't get the question.
Help me out in this.
Answer Posted / kishore
n = bBrowser("Philips Web Login").Page("Philips CL DMS2
Application").Frame("ScopeFrame").Link("DC3701737
(Active)").getroproperty("name")
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is run action?
Explain the concept of object repository and how qtp recognises objects?
What is a programmatic description?
what is review
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How to creating an output value using quicktest professional?
how to acess a test in RSA?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
How can you handle exceptions in qtp?
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What is qtpro? What is quick test pro?
How you can replace string in qtp?
What is the difference between shared and local object repository?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.