Pls help in resolving the issue.

58 views
Skip to first unread message

Mayuri Gupta

unread,
Dec 27, 2012, 1:01:07 PM12/27/12
to qtp-ele...@googlegroups.com

Option explicit
Dim v_url,br_d ,pg_d , my_pg , web_d

v_url="http://www.chasestudentloans.com/student-loan-resources/budget-calculator.html"
systemutil.Run"iexplore.exe",v_url
wait 4
Set  br_d = description.Create() ' create empty object of type description
br_d("title").value = "Budget.*"
Set pg_d = description.Create()
pg_d("title").value = "Budget.*"
set my_pg = Browser(br_d).Page(pg_d)

Set web_d = description.Create()
web_d("name").value = "tution"
web_d("html tag").value = "INPUT"
web_d("type").value = "text"
If my_pg.WebEdit(web_d).Exist(2) Then
 msgbox "present"
 else
 msgbox "not"--------Qtp always falls into else loop , not able to figure out why it is not able to recognize webedit field , although I have used correct properties.kinldy help
End If

my_pg.WebEdit(web_d).Set 100
 
'Browser(br_d).CloseAllTabs

 

 

 



--
Mayuri Gupta
US - Secaucus

Dineshkumar Rajendran

unread,
Dec 27, 2012, 1:16:04 PM12/27/12
to Mayuri Gupta, QTP eLearn Team
Hi Mayuri,

Issue was with the name property (Name in the code: "tution' instead of 'tuition') of WebEdit.

web_d("name").value = "tuition"

Try with this. This should work now.

Thanks,
Dinesh


--
You received this message because you are subscribed to the Google Groups "QTP eLearn Team" group.
To unsubscribe from this group, send email to qtp-elearn-te...@googlegroups.com.
Visit this group at http://groups.google.com/group/qtp-elearn-team?hl=en-US.
 
 

Reply all
Reply to author
Forward
0 new messages