Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error -2147467259
#1
Not Solved
Hi,
I am getting this error while qtp clicks an edit button on the run time.

Details :
In the script
1. i am getting the total no.of rows from a table
2. then in the for loop getting the cell data upto the row count
3. then it need to click the edit button on the page (The page is containing 19 edit buttons) according to the value in the loop.

The code is:
Code:
Set desc = Description.Create()
desc("alt").Value = "Edit"
desc("html tag").Value = "IMG"
desc("image type").Value = "Image Link"
desc("name").Value = "Image"
desc("file name").Value = "edit.gif"
Set List =Browser("name:= Name").Page("title:= Name").ChildObjects(desc)     
NoOfChildObjs =  List.Count()
Rows = Browser("Browser").Page("Page").WebTable("Table Name").RowCount
Dim j
j=0
For i = 1  to Rows
row = DataTable.GetSheet("Global").GetCurrentRow
ConfigName = DataTable.GetSheet("Global").GetParameter("ConfigName").ValueByRow(row)
'msgbox ConfigName
If  ConfigName = "End"  Then
    ExitTest
else
Config = Browser("Browser").Page("Page").WebTable("Table Name").GetCellData(i,1)
msgbox Config
If  Trim(ConfigName) = Trim(Config)  Then
    j = i - 2
msgbox j
List( j).Click   (<- I am getting General Runtime error in this line while clicking the second object ie List(1).click from the child objects but the first iteration is going well ie List(0).click is working.)
msgbox Err.Number ( -214746259 error number is getting displayed)
Edit the text fields and the n click the update button
DataTable.GetSheet("Global").SetNextRow
End If
End If
Next

Can anybody help me on this.
Reply


Messages In This Thread
Error -2147467259 - by Prema - 10-11-2010, 01:31 PM
RE: Error -2147467259 - by KavitaPriyaCR - 10-11-2010, 01:57 PM
RE: Error -2147467259 - by Prema - 10-11-2010, 02:48 PM
RE: Error -2147467259 - by A.Saini - 10-11-2010, 02:51 PM
RE: Error -2147467259 - by KavitaPriyaCR - 10-11-2010, 03:38 PM
RE: Error -2147467259 - by Prema - 10-11-2010, 06:15 PM
RE: Error -2147467259 - by A.Saini - 10-11-2010, 04:22 PM
RE: Error -2147467259 - by Prema - 10-11-2010, 04:39 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)