Discussion:
get element using xpath
madura pradeep
2012-08-28 10:25:09 UTC
Permalink
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
Jan Honza Odvarko
2012-08-28 10:38:41 UTC
Permalink
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
Post by madura pradeep
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
madura pradeep
2012-08-28 10:46:08 UTC
Permalink
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.
Post by madura pradeep
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
Jan Honza Odvarko
2012-08-28 10:51:53 UTC
Permalink
Take a look at how Firebug is using the function
https://github.com/firebug/firebug/blob/master/extension/content/firebug/console/commandLine.js#L1098
https://github.com/firebug/firebug/blob/master/extension/content/firebug/lib/xpath.js#L174

It works for Firebug so, it must work for other extensions too.

Honza
Post by madura pradeep
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.
Post by madura pradeep
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
madura pradeep
2012-08-28 11:56:54 UTC
Permalink
How to get current open window document for getElementByXpath method?
Post by madura pradeep
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
Jan Honza Odvarko
2012-08-28 12:06:53 UTC
Permalink
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
Post by madura pradeep
How to get current open window document for getElementByXpath method?
Post by madura pradeep
Is it possible to use MozillaBrowserBot inside the firebug.Because It is
use by selenium ide for find element using the xpath.
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
firebug+***@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
Loading...