01-05-2012, 02:01 PM
(This post was last modified: 01-05-2012, 02:43 PM by suresh vasu.)
Hi, I am getting Getting "General Run Error" exception when executing below code
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.
----------
---------------
Normally what are the situations we get General Run Error.
Thanks in advance.
Suresh.
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.