get element using xpath

388 views
Skip to first unread message

madura pradeep

unread,
Aug 28, 2012, 6:25:09 AM8/28/12
to fir...@googlegroups.com
Is it possible to use MozillaBrowserBot inside the firebug.Because It is use by selenium ide for find element using the xpath.

Jan Honza Odvarko

unread,
Aug 28, 2012, 6:38:41 AM8/28/12
to Firebug
I don't have experience with MozillaBrowserBot (provided by Selenium),
can you provide more details about what you want to do and what
MozillaBrowserBot is supposed to do?

Honza

madura pradeep

unread,
Aug 28, 2012, 6:46:08 AM8/28/12
to fir...@googlegroups.com
I have some xpaths.I want to find if objects related to those xpaths are presents or not.I want to do this in my firebug extension.I have tried "doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null);" method.But it didn't work.

Jan Honza Odvarko

unread,
Aug 28, 2012, 6:51:53 AM8/28/12
to Firebug

madura pradeep

unread,
Aug 28, 2012, 7:56:54 AM8/28/12
to fir...@googlegroups.com
How to get current open window document for getElementByXpath method?


On Tuesday, August 28, 2012 3:55:09 PM UTC+5:30, madura pradeep wrote:

Jan Honza Odvarko

unread,
Aug 28, 2012, 8:06:53 AM8/28/12
to Firebug
context.window.document

The 'context' object is passed to many methods in Firebug so,
you should have simple access to it - depends where exactly
you are in the code.

There is also a global Firebug.currentContext, but you should
avoid using it.

Honza
Reply all
Reply to author
Forward
0 new messages