Re: Capture Visual Features with JRex

Radhouane <[email protected]> Sun, 20 Jan 2008 11:36:47 +0000 (UTC)
Newsgroups gmane.comp.mozilla.jrex
Message-ID <[email protected]>
Icaro Dourado <icarocd@...> writes:

> 
> 
> Radhouane wrote:
> > 
> > Hi every body,
> > I am new user of JRex. I want to capture box models positions of tags in
> > the 
> > DOM tree of arenderd web page using JRex. I mean by box models of a tag,
> > its 
> > position in the rendred page. Example, the tab <P> will be rendered at 
> > position row (15 pixels) and columns row (20 pixels). Is it possible with
> > JRex?
> > Thx.
> > 
> 
> I want to do this too! I have a suggestion: take a look at this project:
> WebCoords
> It may be "weak" because it calculates the positions, and CSS, javascript
> and others are not considered. it's a approach, but is not good enough at
> the most of the cases.
> Radhouane, please contact me if you get progress! thanks

Hi Icaro,
I have installed WebCoords, and it is running. I have remarked that WebCoords
detect visual positions of only rendered text nodes, and this position is 
calculated from the HTML DOM tree and is not the exact pixel's position of 
rendered box text. WebCoords gives only relative position of text nodes to 
each others. I have read in the newsgroup that Gecko engine can capture the 
visual box of each node's DOM tree, but I don't know how can do it!
If I have more information about the subject I will inform you.