Hi all , we have a solution ,
We need to do the following:
Set oEdit = Browser("Browser").Page("title:=.*").Frame("html
id:=V1_I1_S2_I1_S12_I1_R1_I1_RTC3_RTI1_RT1_plainText_iframe").WebElement("html
tag:=BODY")
'Set the focus
oEdit.Click
wait 10
'Create device replay object
Set oDR = CreateObject("Mercury.DeviceReplay")
'Send some text
oDR.SendString "The defendent be restrained from removing the child from the
matrimonial home without permission of the plaintiff"
wait 10
Set oEdit1 = Browser("Browser").Page("title:=.*").Frame("html
id:=V1_I1_S2_I1_S13_I1_S2_I1_RTC1_RTI1_RT1_plainText_iframe").WebElement("html
tag:=BODY")
'Set the focus
oEdit1.Click
wait 15
'Send some text
Set oDR1 = CreateObject("Mercury.DeviceReplay")
oDR1.SendString "reference with the affidavit filed in support"
cheers
Serene
From: [email protected]
Date: Tue, 8 Mar 2011 19:19:20 +0530
Subject: Re: Need Help
To: [email protected]
CC: [email protected]; [email protected]
hi seema,
in this case Pls use index value for webedit object
for i=1 to 15
Browser("title:=xyz").Page(name:=pqr").WebEdit("name:=xxx","index:="&i).set
"QTP"
next
~Bala
On Tue, Mar 8, 2011 at 5:47 PM, Revanth <[email protected]> wrote:
Hi Seema,
Modify the code as per below. If the name property of webedit displays like
xxx[1].name
It should work
for i=1 to 15
Browser("title:=xyz").Page(
name:=pqr").WebEdit("name:=xxx["&i&'"].name").set "QTP"
next
Thanks,
Revanth
On 8 March 2011 17:10, Seema Mali <[email protected]> wrote:
Hi everyone,
I have 15 edit fields in my web page, using descriptive
programing i want to write some text in those edit fields.
Edit field properties :
for 1st edit field: xxx[1].name
for 2nd edit field: xxx[2].name
for 3rd edit field: xxx[3].name
'
'
'
'
for 15th edit field: xxx[15].name
Here is my code.
for i=1 to 15
Browser("title:=xyz").Page(name:=pqr").WebEdit("name:xxx["&i&'"].name").set
"QTP"
next
its not working.....
Please help........
Regards
Seema
--
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,
Balakrishnan.N
--
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