Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help about CreateObject
#3
Not Solved
mmhhh... I have found the solution for my answer, that is:

Code:
Function Open()
  dim objexplorer
  set objexplorer     = CreateObject("InternetExplorer.Application")
  objexplorer.visible = true
  objexplorer.navigate "http://www.google.it"
  set Open = objexplorer
  Set objexplorer = nothing
End Function

Dim IEexp, testo
set IEexp = Open()
testo = IEexp.statustext
msgbox testo

Now my problems continue with QTP, about relationships. My goal is something similar to:
Browser("...").Page("...").WebEdit("...").Set "xyz"
but without objects in the O.R.  I obtain error with this code:

Code:
dim objexplorer, pagina, pagina2
set objexplorer     = CreateObject("InternetExplorer.Application")
objexplorer.visible = true
objexplorer.navigate "http://www.google.it"
Set pagina = description.Create()
pagina("Class Name").value= "Page"
Set pagina2= objexplorer.childobjects(pagina)
...

Where do I wrong?
thanks for every help

PS: the link "https://www.learnqtp.com/descriptive-programming-simplified/" is useful but not still sufficient exhaustive for my lacks :-)
Reply


Messages In This Thread
help about CreateObject - by stevol - 05-29-2008, 01:20 PM
RE: help about CreateObject - by Ankur - 05-29-2008, 04:26 PM
RE: help about CreateObject - by stevol - 05-30-2008, 05:20 PM
RE: help about CreateObject - by chrissolinsky - 11-23-2011, 08:28 PM
RE: help about CreateObject - by Ankur - 05-30-2008, 11:28 PM
RE: help about CreateObject - by anemuday - 07-17-2008, 11:30 AM
RE: help about CreateObject - by vineet1234 - 01-08-2009, 11:39 AM
RE: help about CreateObject - by stevol - 01-13-2009, 03:54 PM
RE: help about CreateObject - by SUSHEEL_VIG - 07-26-2009, 09:03 PM
RE: help about CreateObject - by tkmseie - 11-19-2009, 07:21 PM
RE: help about CreateObject - by arunshuklainbox - 01-25-2016, 02:48 PM
RE: help about CreateObject - by rajpes - 07-30-2011, 07:13 AM
RE: help about CreateObject - by sreeswetha - 08-19-2011, 12:51 AM
RE: help about CreateObject - by s_shiva - 11-23-2011, 11:16 AM
RE: help about CreateObject - by atul2038 - 09-23-2011, 05:34 PM
RE: help about CreateObject - by Ankur - 09-23-2011, 05:51 PM
RE: help about CreateObject - by shivu.impu - 02-17-2012, 01:23 PM
RE: help about CreateObject - by vinod123 - 11-19-2015, 02:08 PM
RE: help about CreateObject - by smiley - 10-04-2016, 08:38 AM
RE: help about CreateObject - by arunshuklainbox - 10-04-2016, 09:22 AM
RE: help about CreateObject - by arunshuklainbox - 10-04-2016, 09:26 AM
RE: help about CreateObject - by metaforum - 05-14-2018, 02:28 PM
RE: help about CreateObject - by preethishetty - 08-02-2018, 12:36 PM
RE: help about CreateObject - by swethareddy - 04-16-2019, 11:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Detail info about createObject() nandu 1 4,116 11-30-2010, 10:36 AM
Last Post: Saket
  Need list of "objects" used in qtp by using "CreateObject" SaranKumarV 2 15,536 09-15-2010, 05:03 PM
Last Post: SaranKumarV
  What is the exact meaning of CreateObject() Rajashekar Gouda 1 5,354 01-17-2008, 02:37 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 4 Guest(s)