Write a script to delete a specific row in a webtable.

Answers were Sorted based on User's Feedback



Write a script to delete a specific row in a webtable...

Answer / raj kumar

This is the correct answar

'The following example uses the DeleteRow method to delete the third child row of the
'first row of the "UltraWebGrid1" grid.

Browser("Database Updating").Page("Database Updating").WbfUltraGrid("UltraWebGrid1").DeleteRow "0,2"

Is This Answer Correct ?    2 Yes 5 No

Write a script to delete a specific row in a webtable...

Answer / saravanaraja

using row index we can delete a particular record in a web
table.

Browser("").Page("").weblink("html id &index number").click

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More QTP Interview Questions

what is keyword driven testing in qtp?n how is it useful?

0 Answers  


Explain how you can replace string in qtp?

0 Answers  


how to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.

3 Answers  


what sort of things what u put in Bug Report ?

1 Answers  


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

0 Answers   V2 Solutions,


hi,which is the best book to refer QTP 9.2 and Faq's.

2 Answers  


If object is not recognized by qtp but the object is standard object what is your approach?

0 Answers  


can u put checpoints for moving images

2 Answers   Accenture,


How to handle the exceptions using recovery scenario manager In QTP?

2 Answers  


Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


For the below written code , i want to be stop the loop (ex:10 times), but it is focusing to first line of the code & generating error. vbwindow("vbname:=frmMain").Type micAltDwn + "6" + "2" + "D" +micAltUp 'wiil open the particular window in application vbwindow("vbname:=frmDeduction").vbbutton("vbname:=cmdNew").Click DataTable.ImportSheet"F:\QTP VBScript\Form 26-1.xls","Deduction",Global RowCount = DataTable.GetSheet("Global").GetRowCount i=RowCount For j =1 to i 'vbwindow("vbname:=frmDeduction").WinObject("nativeclass:=DataComboWndClass","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type DataTable("Section", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micTab vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtOfPay").Set DataTable("Amount_of_Payment", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Set DataTable("Amount_PaidCredited_Date", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type DataTable("Deduction_is", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micTab vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdSave").Click DataTable.SetNextRow Next vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdClose").Click

0 Answers  


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

0 Answers  


Categories