Micro Focus QTP (UFT) Forums
help with finding a page using DP - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: help with finding a page using DP (/Thread-help-with-finding-a-page-using-DP)



help with finding a page using DP - mv8167 - 09-28-2011

Can someone help me with my syntax of the following If statement

Code:
If Browser("title:="&Preference(.*),"Type:="&"CreationTime","Value:=1" ).Page("title:=Preferences(.*)","index:=0").WebElement("name:=close_window2").Exist Then

thx ;-)


RE: help with finding a page using DP - gaveyom - 09-29-2011

Hi MV,

hope this will help for u, try this

Code:
If Browser("title:=Preference(.*)","Type:="&CreationTime,"Value:=1" ).Page("title:=Preferences(.*)","index:=0").WebElement("name:=close_window2").Exist then


Thanks & Regards,
G@veyom


RE: help with finding a page using DP - mv8167 - 09-29-2011

Thx G,

I need to use:
Code:
If Browser("title:=Preference(.*)","CreationTime:=1" ).Page("title:=Preferences(.*)","index:=0").WebElement("name:=close_window2").Exist then

tadaaaa

But after all of my digging I finally found out why my Browser("Preferences").Page("Preferences") was not working, lol, here it comes; My Local OR had a duplicate Browser("Preferences").Page("Preferences") ... which was different than in my own IA.tsr file. Thus the Local OR was being used while I was changing my IA or.

Arggggggghhhhhhh!

I ussually flush/delete/etc my local OR, my bad.

lol

thx everyone.

Lor