Micro Focus QTP (UFT) Forums
Qtp is not recognise the object - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Qtp is not recognise the object (/Thread-Qtp-is-not-recognise-the-object)

Pages: 1 2


Qtp is not recognise the object - rajaselvan.d - 01-21-2008

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.


RE: Qtp is not recognise the object - Rajashekar Gouda - 01-22-2008

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


RE: Qtp is not recognise the object - rajaselvan.d - 01-22-2008

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.


RE: Qtp is not recognise the object - vadivelan - 01-23-2008

Use wait() command after step6. Please correct me if i'm say wrong.


RE: Qtp is not recognise the object - Rajashekar Gouda - 01-23-2008

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


RE: Qtp is not recognise the object - rajaselvan.d - 01-23-2008

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.


RE: Qtp is not recognise the object - rajaselvan.d - 01-23-2008

Hi raj
Thankyou for your information.


RE: Qtp is not recognise the object - Rajashekar Gouda - 01-23-2008

is that working fine?


RE: Qtp is not recognise the object - rajaselvan.d - 01-23-2008

yes.

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


RE: Qtp is not recognise the object - aksv18 - 01-24-2008

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