Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run problem about O.R.
#1
I have not yet understood the basic functioning of QTP: i have registered the opening of a website, and it runs correctly.
Then i have copied & pasted the same code in another blank sheet, and i have ran it: it doesn't function, with the error:
The "Browser"object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object.

The code is:
Code:
Dim link2 link2="http://www.google.it" SystemUtil.Run "C:\Programmi\Internet Explorer\iexplore.exe","","C:\Documents and Settings\zzsvo02","open" Browser("Browser").Page("Page").Sync Browser("Browser").Navigate link2

if i use the record key and i open google website, the code written in the expert view is the same... but it functions...
How does OR function? or where i can find a process explanation? (not only the single detail, but an overview to understand the functioning)

thanks for any help,
ste
Reply
#2
Hi
you can never copy or paste the script as new script.
You should record the script so that all ojects are collected in object repository.
In the new script which you copied and pasted u will not find any object.
Just check the object repository of the new script which you copied and pasted,u find no object there since u never recorded itSmile
Reply
#3
but is there a method to write code in expert view able to function without a pre-existent record? With some setting of objects or similar? or, indipendently of the possibility, it's a bad idea?
thx,
ste
Reply
#4
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Run Results Viewer Reporting Problem Arjun279 1 7,505 12-04-2010, 01:30 AM
Last Post: Avital

Forum Jump:


Users browsing this thread: 1 Guest(s)