Dom Elements Not XPath Searchable

245 views
Skip to first unread message

btdev

unread,
Sep 9, 2009, 11:25:53 AM9/9/09
to Firefinder, brice.g...@gmail.com
I am using Firefinder to traverse a page that has some DHTML created
by ajax/jquery. When I select those elements I can view them in the
source code. However, when I copy the XPath and try to firefind with
that XPath the elements cannot be found.

I would have thought it was a bug in Firefinder, however I am using
HTMLUNIT for testing, and confirmed that the xpaths and identifiers
cannot find those elements.

Its not necessarily a FireFinder issue, but I figured I would post
here if some one runs into this issue.

Does any one have experience with the browser displaying Elements, but
the tools not being able to find those elements?

Recap: The elements show up on the Source Code, however when
Firefinding the XPath the elements cannot be found.

Thanks,
Brice

Robert Nyman

unread,
Sep 9, 2009, 11:29:42 AM9/9/09
to firef...@googlegroups.com
Hi Brice,

Thanks for posting this!

Firefinder uses the native XPath support in Firefox to find elements, so my guess is that is something wrong in Firefox itself.
Can you find those elements via CSS (in Firefinder)? It's interesting to see if the problem lies with XPath, or with those elements in general.


Best regards,
Robert

Brice Truitt

unread,
Sep 10, 2009, 8:25:46 AM9/10/09
to firef...@googlegroups.com
Those links are inside of an IFrame. So that mar explain why they do not show up for Firefinder on the page I am working with. The applications source code hides the IFrame inside of a <div> which is itself inside of a large tree of <div> tags. 

That would explain why the copied XPath does not find the element, because the Dhtml inside of the <iframe> is an external document. 

Thanks for the assistance,
Brice 

Robert Nyman

unread,
Sep 10, 2009, 8:28:21 AM9/10/09
to firef...@googlegroups.com
Hi,

Yes, that definitely explains it. As of right now at least, iframes aren't supported, and I'm not sure that support will be added.
For iframe content, at the moment, please open the iframe URL in a new tab and then run Firefinder.

Best regards,
Robert

Brice Truitt

unread,
Sep 10, 2009, 9:33:32 AM9/10/09
to firef...@googlegroups.com
Thanks, that worked like a charm! 

/r
Brice

Robert Nyman

unread,
Sep 10, 2009, 9:35:02 AM9/10/09
to firef...@googlegroups.com
Great! :-)

/Robert
Reply all
Reply to author
Forward
0 new messages