Micro Focus QTP (UFT) Forums
problem with simple script - 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: problem with simple script (/Thread-problem-with-simple-script)



problem with simple script - Myler - 12-07-2009

Hi All,

Could someone help me with my simple script?
I do not understand why QTP can not find the object.
I recorded video to show you my steps.
[Link Removed: Not working any more]

Best Regards,
Marcin


RE: problem with simple script - Saket - 12-08-2009

Hi Marcin,

is it possible for you to paste your steps here ?


RE: problem with simple script - Myler - 12-08-2009

Hi Saket,

Below I pasted my steps:

Code:
Browser("Channel21 Logon").Page("Channel21 Logon").WebEdit("username").Set "nome2e@gbn997"
Browser("Channel21 Logon").Page("Channel21 Logon").WebEdit("password").SetSecure "4b1d24e7e17c22c0ac9e959d7f51ec64f9f01491f9752"
Browser("Channel21 Logon").Page("Channel21 Logon").WebEdit("password_2").SetSecure "4b1d24e85c85a2ec4547b4692ada2f870515354811b"
Browser("Channel21 Logon").Page("Channel21 Logon").WebEdit("password_2").Submit
Browser("Channel21 Logon").Page("GM GlobalConnect").Link("Workbenches").Click
Browser("Channel21 Logon").Page("GM GlobalConnect_2").Link("Inquire Vehicle").Click
Browser("Browser").Page("Page").WebButton("Ok").Click
Browser("Browser").Page("Channel21 - WVI 12.14-").WebRadioGroup("searchType").Select "vehicleNum"
Browser("Browser").Page("Channel21 - WVI 12.14-").WebEdit("vehicleNum").Set "123"
Browser("Browser").Page("Channel21 - WVI 12.14-").WebButton("Inquire").Click
I attached source file.
Regards,
Marcin


RE: problem with simple script - nil - 12-09-2009

hi,

Pls verify this two lines

Code:
Browser("Channel21 Logon").Page("GM GlobalConnect").Link("Workbenches").Click
Browser("Channel21 Logon").Page("GM GlobalConnect_2").Link("Inquire Vehicle").Click
Browser("Browser").Page("Page").WebButton("Ok").Click

After Clicking on the first link again u have clicked second link
before closing the second browser opened by first link.


Code:
ALos Check ur object Identification Settings.[hr]
what is the diff between this two pages
Page("GM GlobalConnect")
Page("GM GlobalConnect_2")

Browser("Channel21 Logon").Page("GM GlobalConnect").Link("Workbenches").Click
Browser("Channel21 Logon").Page("GM GlobalConnect_2").Link("Inquire Vehicle").Click

Are this two link on different pages