Please see the below code:
1. Just assume that table name is "abc"
a)
Rw1=Browser("abc").page("abc").webtable("abc").GetRowWithCellText("3")
Browser("abc").page("abc").webtable("abc").childitem(Rw1, 4, "Link",
0).click
b)
Rw1=Browser("abc").page("abc").webtable("abc").GetRowWithCellText("QTP")
Browser("abc").page("abc").webtable("abc").childitem(Rw1, 4, "Link",
0).click
Regards
Uma Mahesh
On Tue, Nov 26, 2013 at 1:42 PM, abha tiwari <[email protected]> wrote:
> Can you please provide the complete code for the same...
>
>
> On Mon, Nov 25, 2013 at 11:03 PM, <[email protected]> wrote:
>
>> By using GetRoWithCelltext property , this can be done very easily .
>>
>> On Tuesday, November 26, 2013 12:04:19 PM UTC+5:30, Lucky wrote:
>>>
>>> We have a *webtable* which consists of 4 rows and 4 columns.The table
>>> is shown below
>>> *ID* *Name* *Age* *Details* 1 Automated 23 Click
>>> here<http://www.google.com/url?q=http%3A%2F%2Fautomated-360.com%2Finterview-questions%2Finterview-question-for-qtp%2F%23&sa=D&sntz=1&usg=AFQjCNEjp-fQh1j8zgZ7pNVB7p37BUkAKg>
>>> 2 Test 20 Click
>>> here<http://www.google.com/url?q=http%3A%2F%2Fautomated-360.com%2Finterview-questions%2Finterview-question-for-qtp%2F%23&sa=D&sntz=1&usg=AFQjCNEjp-fQh1j8zgZ7pNVB7p37BUkAKg>
>>> 3 QTP 22 Click
>>> here<http://www.google.com/url?q=http%3A%2F%2Fautomated-360.com%2Finterview-questions%2Finterview-question-for-qtp%2F%23&sa=D&sntz=1&usg=AFQjCNEjp-fQh1j8zgZ7pNVB7p37BUkAKg>
>>> 4 Interview 25 Click
>>> here<http://www.google.com/url?q=http%3A%2F%2Fautomated-360.com%2Finterview-questions%2Finterview-question-for-qtp%2F%23&sa=D&sntz=1&usg=AFQjCNEjp-fQh1j8zgZ7pNVB7p37BUkAKg>
>>>
>>> Write the code for the below situations
>>>
>>> a) You need to click on link whose ID =3
>>>
>>> b)You need to click on the link of the person whose name is “QTP”.
>>>
>>> --
>>> Regards
>>> Abha Tiwari
>>>
>> --
>> --
>> 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 Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Regards
> Abha Tiwari
>
> --
> --
> 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 Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
--
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 Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.