11-24-2011, 07:56 PM
Saw the screenshot. The one you have highlighted is a WebButton.
Where as in the below code which we are using is WebElement. This the object which u get when you hit Search.
I mean this object will hold the value "0 records returned" or "1 records returned".
Plz add the object which dispalys the above msg to OR and use the Same name, as in OR, in the below code in place of ResultMsgObjectName.
Regards,
Ankesh
Where as in the below code which we are using is WebElement. This the object which u get when you hit Search.
I mean this object will hold the value "0 records returned" or "1 records returned".
Plz add the object which dispalys the above msg to OR and use the Same name, as in OR, in the below code in place of ResultMsgObjectName.
Code:
strResultMsg= Browser("Browser").Page("Page").Frame("workarea").webelement("<ResultMsgObjectName>").GetROProperty("innertext")".
Regards,
Ankesh