Hi,

First try to find the obj count using Childitemcount method in the
particular row and column

nCnt = Browser("SonoSite World Leader").Page("Eloqua : SonoSite").Frame("
AppTodayTreeView").WebTable("Tablename").Childitemcount(2,1,"WebElement")

If the nCnt is 0 then no element is present inside the table.If the count
is greater than 0 then an Webelement is present in side the webtable, then
use the childitem method to click on the webelement.

Regards,
Suman Ch
+919849099488


On Mon, Jan 2, 2012 at 10:29 AM, shashi qa <[email protected]> wrote:

> HI all,
>
>
> This is the script generated while recourding.while playing it is throwing
> an error. The red line is where I am getting a problem
>
>
> Browser("SonoSite World
> Leader").Page("Eloqua").WebButton("SubmitButton").Click
> Browser("SonoSite World Leader").Page("Eloqua :
> SonoSite").Frame("AppTodayTreeView").WebElement("Forms Overview").Click
> Browser("SonoSite World Leader").Page("Eloqua :
> SonoSite").Frame("Frame").WebElement("US Website Contact Sales").Click
>
>
> The last step when I spy using object spy it is showing as a webelement in
> webtable.
>
>
>
> Regards
> Shashi
>
>
> On Fri, Dec 30, 2011 at 5:24 PM, Kishor Kumar <[email protected]>wrote:
>
>> r u sure that web element exist in row2 col 1..
>> there might be some hidden rows & columns , try to increase the colmn
>> value and verify
>>
>> and
>> Disable Smart Identification in OR for all objects
>>
>> On Fri, Dec 30, 2011 at 1:47 PM, shashi qa <[email protected]> wrote:
>>
>>> I have tried as per your instructions but Qtp is not clicking on the link
>>>
>>> set a = browser("Eloqua").Page("Eloqua :
>>> SonoSite").Frame("Frame").WebTable("Form").ChildItem(2,1,"WebElement",0)
>>> a.click
>>>
>>>
>>> Can any one help me...
>>>
>>>
>>> Regards
>>> Shashi
>>>
>>> On Thu, Dec 29, 2011 at 9:37 PM, Anish Pillai <
>>> [email protected]> wrote:
>>>
>>>> Hi Shashi,
>>>>
>>>> If you directly add the object (which is inside the webtable), QTP
>>>> would not add the web table object in the repository. In case you want to
>>>> add webtable in the OR, you have to select that only in the object spy.
>>>> Even if you do that also, the object inside the webtable would not come
>>>> under webtable in the OR. You can use the below method to click on the
>>>> Webelement in a table.
>>>>
>>>> Suppose you want to click on WebEl_1. Now this webelement is in 1st row
>>>> and 4th column. And within cell(1,4) this Webelement occurs at 0th index.
>>>>
>>>>   Val1
>>>>
>>>> Val2
>>>>
>>>> Val3
>>>>
>>>> *WebEl_1  WebEl_2  WebEl_3*
>>>>
>>>> 1. First add the WebTable in OR.
>>>>
>>>> 2. Then use the ChildItem method of webtable...
>>>>
>>>> Browser("b").Page("p").Frame("f").WebTable("wt").ChildItem(1, 4,
>>>> "WebElement", 0).Click
>>>>
>>>>
>>>> *Regards,
>>>> Anish Pillai
>>>>
>>>> [Automation Repository] <http://www.automationrepository.com/>
>>>>
>>>> [Subscribe via 
>>>> Email]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
>>>> [RSS Feed] <http://feeds.feedburner.com/automationrepository/feeds>*
>>>>
>>>> --
>>>> Regards,
>>>> Anish Pillai
>>>> My QTP Blog <http://automationrepository.blogspot.com>
>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> Regards
>>>
>>> Shashidhar
>>> +91 -8125564879
>>> [email protected]
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>
>
>
> --
> Regards
>
> Shashidhar
> +91 -8125564879
> [email protected]
>
>  --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to