06-24-2013, 06:54 AM
(06-23-2013, 09:10 PM)Ankur Wrote: Hari, Welcome to QTP forums.
Why are you using Visual Relation identifiers? Did you try the normal approach first by Object spying on the date?
Please find below the identification properties taken from Object Spy.
"Class Name:=WebElement",
"abs_x:=449",
"abs_y:=758",
"class:=",
"height:=16",
"html id:=",
"html tag:=TD",
"innerhtml:=14-May-2013 ",
"innertext:=14-May-2013 ",
"outerhtml:=<TD vAlign=top align=left>14-May-2013 </TD>",
"outertext:=14-May-2013 ",
"type:=",
"visible:=True",
"width:=510",
"x:=346",
"y:=538"
I have written the below code to identify the object and it is successful.
Code:
Set desc2 = Description.Create
desc2( "innertext").Value = "14-May-2013"
desc2("html tag").value= "TD"
Browser("title:=.*").Page("title:=.*").WebElement( desc2).highlight
However, the page contains many such date values and I want to identify only the date value after 'Date of Last Update:' text.
Please review and advise.