Hi Srini,

Use the below set of code this might useful for u

'====================================================================

'Test_name="Ashok"

'RC-Get the row count of the table

'Cell Row- Verify the  Test_name  is exist in the first column and get the
row number

'If the  Test_name exist then click the Account details link using childitem


'==================================================================

Test_Name=’Ashok’



Function ClickSelectLinkbyId (oTableObject, Test_Name)

RC=oTableObject.RowCount

For r=1 to rc

    If cstr (Test_Name) =trim (oTableObject.GetCellData(r, 1)) then

        Cell Row=r

        Exit For

    End if

Next

    Set lnkObj=oTableObject.ChildItem (CellRow, 2,"Link",0)

    lnkObj.click

End Function

'==================================================================






On Mon, May 7, 2012 at 4:22 PM, Suresh Pandian <[email protected]> wrote:

> Hi Srini,
>
> if this is on a webtable, use the DP and get the childobject of the first
> column based on the selection use the row number and click the next column.
> if you could share the source code we could throw some light
>
> Regards,
> Suresh
>
>
>
>
> On Sunday, May 6, 2012 2:11:55 PM UTC+5:30, srinivas wrote:
>>
>> Hi All,
>>
>> Please see the attached screenshot. My test scenario is to click on
>> 'Account Details..' link for the name Ashok in my Web Application. The
>> table content is not placed on WebTable object and here all the 'Account
>> Details..' links have same properties and values. So, I've used index
>> property to click upon the 'Account details...' link for the name Ashok.
>> But whenever any other names are get added to the application just above
>> the name Ashok, then the test is getting failed as index value of the
>> 'Account Details..' link for Ashok is changed.
>>
>> Please guide me if there is any other way to automate this scenario.
>>
>> Thanks in Advance.
>>
>>
>> Regards,
>> Srinivas.
>>
>  --
> 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
>



-- 
Vamsi Reddy
*
*

* *

-- 
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