Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Visual Relations does not work with DP
#3
Solved: 11 Years, 6 Months ago
(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.
Reply


Messages In This Thread
RE: Visual Relations does not work with DP - by ourhari - 06-24-2013, 06:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding Visual Relation id via script to new object jcraig26 1 4,127 06-24-2013, 01:26 PM
Last Post: ourhari
  Adding a Visual ID - creating a function jcraig26 0 2,586 11-09-2012, 02:56 AM
Last Post: jcraig26
Question Achieving Visual Relation Identifier option using AOM scsvel 1 5,212 02-17-2012, 04:17 PM
Last Post: scsvel
  Problem with IE - Visual C++ library error sumalatha 0 1,808 06-16-2009, 10:57 AM
Last Post: sumalatha
  Cannot detect other layer of visual tree qtpnewbee 1 2,247 07-18-2008, 07:57 PM
Last Post: vamshiram

Forum Jump:


Users browsing this thread: 2 Guest(s)