Write the code for select the 5 values from drop down list.
drop down list having the 10 values.
Answer Posted / deven
Dim cMethodcount,cme
cMethodcount = Browser("IAS").Page("IAS").Frame("WorkFrame").WebList("CalcMethod").GetROProperty("items Count")
For cme = 1 to cMethodcount -1
Browser("IAS").Page("IAS").Frame("WorkFrame").WebList("CalcMethod").Select(cme)
If Instr(Browser("IAS").Page("IAS").Frame("WorkFrame").WebList("CalcMethod").GetROProperty("selection"),datatable.Value("CalculationMethod","dtAManagement")) Then
Exit for
End If
Next
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to build scripts that access data from external sources?
Why is action split used by qtp?
What are the different types of functions available in qtp and explain ?
What are the different attributes used with regular expression?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
How many types of run modes are there in qtp?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
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
What are advantages of test automation?
What will be happen if i load object repository at run time, but it has already associated.
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
What is the difference in the global and action sheet in qtp?
What is throw Object?
how to idetfy which test cases are automated?who will deside that plz tell me
What is the descriptive programming?