Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive programming for different browser and page -Error
#1
Solved: 11 Years, 4 Months ago
Hi,
Below is my code,
Code:
If Browser("opentitle:="&result,"application version:=internet explorer 7").Exist Then
    print "ok"
    else
    print "no browser"
End If
If Page("title:="&pge1,"height:=593","url:="&purl).Exist Then
print "ok"
    else
    print "no page"
End If

Here I am able to get the browser.
for the page,I am passing exactely same properties,
what I got it from Object,but it always printing no page.
[I am passing the title and url and i am directly giving height value]
Any help?
Thanks
Uma
Reply
#2
Solved: 11 Years, 4 Months ago
Hi,

For the page, you are skipping browser and hence not following the basic hierarchy that it required for qtp to identify the objects. Use the below for the page :
Code:
Browser("opentitle:="&result,"application version:=internet explorer 7").Page("title:="&pge1,"height:=593","url:="&purl).Exist

Regards,
Parminder
Reply
#3
Solved: 11 Years, 4 Months ago
Hi parminder,
You are correct,Now it is working.
Thank you.
Uma
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,795 05-04-2017, 03:52 PM
Last Post: Ankur
  Descriptive PROGRAMMING sandeepm1989 0 2,099 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 5,078 12-20-2013, 01:44 PM
Last Post: sshukla12
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,091 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" kp_usa 1 3,358 12-20-2012, 12:20 AM
Last Post: adityapant27

Forum Jump:


Users browsing this thread: 3 Guest(s)