not sure is this you are asking
try this
a = browser("").Page("").Link("Google Groups").getRoProperty("text")
If (instr(a, "google" ) > 0 Then
b = right(a, (len(a) - 7 ) ' 7 for google and space
End if
environment.value("abc") = b
now pass b where ever you needed
Regards,
Avinash
On Mon, Jun 6, 2011 at 6:32 PM, Ganga Subash <
[email protected]> wrote:
> Hi All,
>
> How to select a particular word from the webpage using QTP scrit.
> E..g : Google Groups
> Here, I want to select the word 'Groups'(Dynamic, differs in run time) and
> then need to Copy & paste to another web application.
>
> Thanks in Advance,
> Ganga
>
> --
> 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