Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Qtp is not recognise the object
#1
Not Solved
Web based application : qtp not recognised some object. eventhough i have add the object in object repository, does not recognise some object

see the script
Code:
1.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtClientCode").Set "456"
2.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtClientName").Set "sfsdfsdf"
3.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtClntShortName").Set "sfsdaf"
4.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebList("cmbBranch").Select "COIMBATORE"
5.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtDpid").Set "12345678"
6.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebList("cmbCategory").Select "QIB"
7.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebList("cmbClientType").Select "Financial Institutions"
8.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtPanNo").Set "44444"
9.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebEdit("txtBeneficiaryid").Set "54545644"
10.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebList("cmbMainactcode").Select "AIG GLOBAL INVESTMENT CORPORAT"
11.Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebButton("Submit").Click

When qtp execute the line no 7 this error messag window is display

When add the line no 7 object, in object repository at the time object name is worngly display. see the attachement.


Attached Files
.zip   Document.zip (Size: 324.29 KB / Downloads: 113)
Reply
#2
Not Solved
HI rajaselvan,

My basic question is "is the drop down option Financial Institutions prepopulated or it depends uppon the selection of above data like "COIMBATORE" ?

Try to replace the line No. 7 by below code
Code:
Browser(".:: e-IPO System ::.").Page(".:: e-IPO System ::.").WebList("cmbClientType").Select 1
Pls let me know the result
Regards
Raj
Reply
#3
Not Solved
Hi raj
Thank you for your information. But same error message is dipslay. Because when execute the line no 6 take time to refresh, so to execute next line no 7 error message is display . Over come this problem please give me script.
Reply
#4
Not Solved
Use wait() command after step6. Please correct me if i'm say wrong.
Reply
#5
Not Solved
Yes vadivelan is correct,

Since when QTP select "QIB" from drop down "cmbCategory" page is getting refresha and it takes time. U need to put Wait(5) statement to overcome the issue.

Let us know the result
Regards
Raj
Reply
#6
Not Solved
Hi vadivelan
Thankyou for your information. As You give the same script is correctly executed in my test.

Now i iam One more question post in forum. If you know the answer this question pls reply to me.
Reply
#7
Not Solved
Hi raj
Thankyou for your information.
Reply
#8
Not Solved
is that working fine?
Reply
#9
Not Solved
yes.

hi
I have attach one form design. How to write descriptive programming for that form. Please give me the script.


Attached Files
.zip   ref type.zip (Size: 107.36 KB / Downloads: 100)
Reply
#10
Not Solved
hi,

I think the simplest way of using descriptive programming in your form is:

Code:
Browser("name:=Referrer Type").Page("name:=Referrer Type").WebEdit("index:=0"). ' this is for the first webedit object in your form

Code:
Browser("name:=Referrer Type").Page("name:=Referrer Type").WebEdit("index:=1"). ' this is for the second webedit object in your form
or you can add more properties in other object
like for the browser and page you can add the "title" property
and for the webedit object like "kind", "type" etc..
.. and so forth and so forth...

I also attached some documents about descriptive programming


Hope this helps... Smile


Attached Files
.doc   DP_in_QTP.doc (Size: 77 KB / Downloads: 116)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesnot recognise lakshmikanth 0 1,123 12-18-2017, 04:10 PM
Last Post: lakshmikanth
  QTP does not recognise elements randomly Pkapoor 2 2,630 07-05-2013, 11:27 AM
Last Post: Pkapoor
  QTP cannot recognise WpfGrid and Wpfcombobox korsar01 0 3,756 12-06-2010, 05:34 PM
Last Post: korsar01
  QTP can not recognise objects on new sessions SUSHEEL_VIG 1 3,734 07-27-2009, 11:39 AM
Last Post: QTPian
  QTP Unable to Recognise the Control Panel Add and Remove Objects yammy 0 3,221 04-22-2009, 04:32 AM
Last Post: yammy

Forum Jump:


Users browsing this thread: 1 Guest(s)