Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting General Run Error
#1
Hi, I am getting Getting "General Run Error" exception when executing below code

Code:
1. For intObjectFound = 0 to Frame_ShipmentPage.Count 2. Set WebElement_ActionBtn = Frame_ShipmentPage(intObjectFound).ChildObjects(ActionDesc) 3. If WebElement_ActionBtn.Count <> 0 Then 4. Exit For 5. End If 6. Next

Getting error at line 2, I have verified all the properties of defined objects everything is ok in that part. Object descrition below for your ref.
----------
Code:
Set FrameDesc = description.Create FrameDesc("micclass").Value = "Frame" FrameDesc("html id").Value = "ext-gen.*" set Frame_ShipmentPage = obj_page_Welcome.ChildObjects(FrameDesc) -------- Set ActionDesc = description.Create ActionDesc("micclass").Value = "WebElement" ActionDesc("innertext").Value = "Actions" ActionDesc("class").Value = " x-btn-text|buttontext"
---------------
Normally what are the situations we get General Run Error.

Thanks in advance.

Suresh.
Reply
#2
Code:
For intObjectFound = 0 to Frame_ShipmentPage.Count Set WebElement_ActionBtn = Frame_ShipmentPage(intObjectFound).ChildObjects(ActionDesc) If WebElement_ActionBtn.Count <> 0 Then Exit For End If Next

In the above loop, the array base in dex will be 0. so the maximum value should be Frame_ShipmentPage.Count-1.

Code:
For intObjectFound = 0 to Frame_ShipmentPage.Count-1
Reply
#3
Thanks for the reply, and it worked there but now the sameerror is coming at below line Sad

Code:
Set WebElement_ActionButton = WebElement_ActionBtn(0) WebElement_ActionButton.Click

Pease help
Reply
#4
Its working fine now, there was a problem with Frame object property.

Thanks all.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 2,437 02-08-2019, 02:12 AM
Last Post: Ankur
  General Object Error(Find Object Error) akhandesh 1 4,152 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 9,578 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 3,046 01-24-2015, 06:52 AM
Last Post: Awzar
  Browser("BrowserName").Back gives General Run Error... deminiek 13 21,156 12-10-2013, 12:53 AM
Last Post: rizvia

Forum Jump:


Users browsing this thread: 1 Guest(s)