Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser("BrowserName").Back gives General Run Error...
#4
Not Solved
Thanks Saket. I took your suggestion and tried to get the error message. It spit out Error #-2147467259, but the Err.Description was blank. Searching Google for -2147467259 didn't return anything.

We're using QTP 9.2 with IE 7. The code is pretty straight-forward. This is what it's actually doing...

Code:
' Identify the new User ID and Password.
Browser(strBrowserName).Page(strPageName).Link("Temporary UID").Click

Browser(strBrowserName).Page(strPageName).Sync

If InStr(Browser(strBrowserName).Page(strPageName).WebElement("UID Message").GetROProperty("innerhtml"), "Dear") > 0 Then
  strTotalUIDMessage = Cstr(Browser(strBrowserName).Page(strPageName).WebElement("UID Message").GetROProperty("innerhtml"))
End If

intStartChar = InStr(1, strTotalUIDMessage, "User ID:", 1)
intEndChar = 50

strUIDReceived =  Cstr(Mid(strTotalUIDMessage, intStartChar, intEndChar))

intStartChar = 1
intEndChar = InStr(1, strUIDReceived, "<BR>", 1) - 2

strUIDPassword = Left(strUIDReceived, intEndChar)
        
intStartChar = InStr(1, strUIDReceived, "- Password", 1) + 2
intEndChar = Len(strUIDReceived) - intStartChar - 4

strUIDReceived = strUIDPassword & "   " & Cstr(Mid(strUIDReceived, intStartChar, intEndChar))

' Load the results into the Global DataSheet.
DataTable.Value("EMailTempUID", dtGlobalSheet) = strUIDReceived

On Error Resume Next
Browser(strBrowserName).Back

MsgBox Err.Number
If Err.Number <> 0 Then
  MsgBox Err.Description
End If
Reply


Messages In This Thread
RE: Browser("BrowserName").Back gives General Run Error... - by deminiek - 10-06-2009, 03:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,851 02-08-2019, 02:12 AM
Last Post: Ankur
  General Object Error(Find Object Error) akhandesh 1 3,597 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,653 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 2,633 01-24-2015, 06:52 AM
Last Post: Awzar
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,460 03-11-2014, 12:13 PM
Last Post: devarapallliramana

Forum Jump:


Users browsing this thread: 3 Guest(s)