Write a code check the checkbox in the web table which is in
the 4th row and fifth column (Use child item concept)
Answers were Sorted based on User's Feedback
Answer / uday
set cbObj=browser(browserObj).page(pageObj).webtable
(webtableObj).childitem(4,5,"WebCheckbox",0)
cbObj.set "ON"
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / goutham
set cbObj=browser(browserObj).page(pageObj).webtable
(webtableObj).childitem(4,5,"WebCheckbox",0
| Is This Answer Correct ? | 0 Yes | 0 No |
How to verify the Cursor focus of a certain field?
write a regular expression pattern for xyz?123?
How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.
What is qtp window?
can i login a page by giving username and password and click on ok button through database parameterization.and if its yes then please write the code of that
What is the difference between QTP 8.2 and QTP 9.2
Could any one explain about the nested actions in QTP? This question is asked by Qualitree and CA
3 Answers CA, Qualtree Solutions,
What is descriptive.create () in QTP?
What is the QTP test frame work?
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
Plze let me know how you can validate in the QTP that printed documents is correctly printed or not ie how we can do the validation that all the records or text are printed successfully in the printed document as per the application format requuired.
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one