Thanx Anshoo, was quite unaware of this :(

must have tried myself first on your guidance that HTML DOM object
have to be used.....

Thanx agn AA !!

On May 9, 3:59 pm, Anshoo Arora <[email protected]> wrote:
> There are many possible ways, but have listed two quick ones below:
>
> MsgBox Browser("").WebElement("class:=fhresultcontentbottom", "html
> tag:=DIV").Object.previousSibling.outerHTML
> MsgBox Browser("").WebElement("class:=price", "html
> tag:=DIV").Object.nextSibling.childNodes(0).outerHTML
>
> On May 9, 5:52 am, iRahulSingh <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi Anshoo,
>
> > I'm still a naive to work with XPath hence my only way-out seems to be
> > DOM nodes BUT how to go abt. it ....
> > sorry to be a cry baby but how can we go ahead. following is the
> > source code of the page from which i've to extract the object :
>
> > <div id="Id_983095891633" class="recomRDiv" align="left"
> > style="padding-top:10px;padding-bottom:3px;">
> > <b class="xtop">
> >         <b class="xb1"></b>
> >         <b class="xb2"></b>
> >         <b class="xb3"></b>
> >         <b class="xb4"></b>
> > </b>
> > <div class="fhresultcontenttop">
> >         <div class="airlineinfo">
> >                 <div class="airlineicon">
> >                         <div class="airlinename">Finnair</div>
> >                 </div>
> >         <div class="flightdetails">
> >                 <div class="legdata">
> >                         <div class="legseparator"></div>
> >                 <div class="legdata">
> >         </div>
> >         <div class="price">
> >                 <div class="orange-big-heading-price">
> >                         <span style="font-size:10px;color:#666666; 
> > padding-left:6px;">
> >                                 <br>
> >                                                 <img 
> > src="../img/us/hurry-few-seats.gif">
> >                                 <br>
> >                 </div>
> >         <div class="age">&nbsp;</div>
> > </div>
> > <div style="border-left: 1px solid lightgrey; border-right: 1px solid
> > lightgrey;padding-bottom:10px;">
> >         <div style="position:relative;height:29px;"> --> want to identify
> > this div !!
> > </div>
> > <div class="fhresultcontentbottom">
> >         <div class="checknow1" style="padding-top:1px;">
> >         <div class="checkFlightDetails" style="padding-top:1px;">
> >         <div class="checkFlightDetailsPad" style="padding-top:1px;">
> >         <div class="traveldates">
> > </div>
> > <div id="flightDetails_Id_983095891633" class="flDb" align="center"
> > style="clear:both;"></div>
> >         <b class="xbottom">
> >         <b class="xc4"></b>
> >         <b class="xc3"></b>
> >         <b class="xc2"></b>
> >         <b class="xc1"></b>
> >         </b>
> > </div>
>
> > On May 9, 2:19 pm, Anshoo Arora <[email protected]> wrote:
>
> > > Its possible. You can use any of the three: Visual Relational identifiers
> > > (QTP 11 only), DOM nodes or XPath (QTP 11 only).
> > > On May 9, 2012 2:35 PM, "iRahulSingh" <[email protected]> wrote:
>
> > > > Hi All,
>
> > > > My situation is I've to get an object from my web application which
> > > > doesn;t have any unique properties ( literally NO Unique properties )
> > > > but can be found out using another object which can be identified
> > > > uniquely.
> > > > Now my reuqirement is i can identify an object which has unique
> > > > properties so can i somehow get any handle for this object ( with no
> > > > unique properties ) which is a sibling of other object.
>
> > > > PS : i can;t use Visual identification to add the object as i've to
> > > > add the first object using DP only .
>
> > > > Any possibility guyz ??
>
> > > > Cheers ...
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > "QTP - HP Quick Test Professional - Automated Software Testing"
> > > > group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/MercuryQTP?hl=en

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to