Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with Browser Name which has Pipe Symbol (|)
#1
Not Solved
Hi,

QTP fails to recognize the object's parent(Browser) if the Browser name is like "Yahoo Site | Mail" (pipe symbol in Browser name). I am dynamically capturing Browser name and Page Title and executing the script.

Sample Script:
-------------
Code:
SignUpObjName = "test.gif"
BrowserName=Browser("micclass:=Browser").GetROProperty("name")
PageName=Browser("micclass:=Browser").Page("micclass:=Page").GetROProperty("title")
Browser("name:=" & BrowserName).Page("Title:="& PageName).Image( "file name:=" &SignUpObjName).Click


I got the following Run Error:

"Cannot find the "[Image]" Object's parent "[Browser]" (class Browser). VErify that parent properties match an object currently displayed in your application"

Note1: If we have Object Repository for same Browser (say "Yahoo Site | Mail") we didn't get any error and execution is successful.

Note2: Script works fine for other Browsers which don't have Pipe symbol in their name.

Please share your ideas on this.

Vijay
Reply


Messages In This Thread
Issues with Browser Name which has Pipe Symbol (|) - by dvkbabu - 03-19-2009, 04:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad If/then Statement issues Carver2469 2 4,011 11-03-2015, 03:44 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 7 Guest(s)