Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Use object highlighter for extension?

Received: by 10.58.92.9 with SMTP id ci9mr317854veb.40.1348150343197;
        Thu, 20 Sep 2012 07:12:23 -0700 (PDT)
X-BeenThere: firebug@googlegroups.com
Received: by 10.52.175.170 with SMTP id cb10ls1770350vdc.1.gmail; Thu, 20 Sep
 2012 07:12:16 -0700 (PDT)
Received: by 10.52.35.104 with SMTP id g8mr257055vdj.19.1348150336716;
        Thu, 20 Sep 2012 07:12:16 -0700 (PDT)
Date: Thu, 20 Sep 2012 07:12:16 -0700 (PDT)
From: Sebastian Zartner <sebastianzart...@gmail.com>
To: firebug@googlegroups.com
Message-Id: <d4660494-6803-411f-b0e8-d1ab64247156@googlegroups.com>
In-Reply-To: <2959b3b5-8f4b-4d0d-b617-40d28e6c2a17@googlegroups.com>
References: <03d54a0d-539f-4e3d-9ab7-448039b6b2cc@googlegroups.com>
 <f1b0f632-29b7-4593-96f3-c12aff946f39@c9g2000vbv.googlegroups.com>
 <2959b3b5-8f4b-4d0d-b617-40d28e6c2a17@googlegroups.com>
Subject: Re: Use object highlighter for extension?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_734_20713659.1348150336361"

------=_Part_734_20713659.1348150336361
Content-Type: multipart/alternative; 
	boundary="----=_Part_735_7243641.1348150336361"

------=_Part_735_7243641.1348150336361
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Is your extension a Firebug extension?
If not, the simplest solution is to select the element(s) via 
document.evaluate()<https://developer.mozilla.org/en-US/docs/DOM/document.evaluate>and then change it's/their style e.g. via element.style.backgroundColor 
= "yellow";.
If yes, you can reuse the inspector logic like it's done in Firebug<https://github.com/firebug/firebug/blob/master/extension/content/firebug/chrome/reps.js#L677>
.

Sebastian

On Thursday, September 20, 2012 6:50:03 AM UTC+2, madura pradeep wrote:
>
> No.I'm not need this.I have the xpath of an element in the open url.I want 
> to highlight the object relevant to that url by using it xpath such as 
> selenium ide do (In selenium ide ,give xpath as target and when click on 
> the find button it highlight the object)
>
> On Tuesday, September 18, 2012 7:22:26 PM UTC+5:30, Jan Honza Odvarko 
> wrote:
>>
>> There are some APIs exposed to extension, check out this post: 
>>
>> http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-inspector-part-x/ 
>>
>> Not sure if this is what you need. 
>> Honza 
>>
>> On Sep 18, 9:15 am, madura pradeep <1990dr...@gmail.com> wrote: 
>> > How to use object highlighter which is used inside html panel, for 
>> > extensions? Is it possible to give xpath and highlight the element? 
>>
>
------=_Part_735_7243641.1348150336361
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Is your extension a Firebug extension?<br>If not, the simplest solution is =
to select the element(s) via <a href=3D"https://developer.mozilla.org/en-US=
/docs/DOM/document.evaluate"><span style=3D"font-family: courier new,monosp=
ace;">document.evaluate()</span></a> and then change it's/their style e.g. =
via <span style=3D"font-family: courier new,monospace;">element.style.backg=
roundColor =3D "yellow";</span>.<br>If yes, you can reuse the inspector log=
ic <a href=3D"https://github.com/firebug/firebug/blob/master/extension/cont=
ent/firebug/chrome/reps.js#L677">like it's done in Firebug</a>.<br><br>Seba=
stian<br><br>On Thursday, September 20, 2012 6:50:03 AM UTC+2, madura prade=
ep wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: =
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">No.I'm not need this.=
I have the xpath of an element in the open url.I want to highlight the obje=
ct relevant to that url by using it xpath such as selenium ide do (In selen=
ium ide ,give xpath as target and when click on the find button it highligh=
t the object)<br><br>On Tuesday, September 18, 2012 7:22:26 PM UTC+5:30, Ja=
n Honza Odvarko wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;m=
argin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">There are som=
e APIs exposed to extension, check out this post:
<br><a href=3D"http://www.softwareishard.com/blog/firebug-tutorial/extendin=
g-firebug-inspector-part-x/" target=3D"_blank">http://www.softwareishard.co=
m/<wbr>blog/firebug-tutorial/<wbr>extending-firebug-inspector-<wbr>part-x/<=
/a>
<br>
<br>Not sure if this is what you need.
<br>Honza
<br>
<br>On Sep 18, 9:15&nbsp;am, madura pradeep &lt;<a>1990dr...@gmail.com</a>&=
gt; wrote:
<br>&gt; How to use object highlighter which is used inside html panel, for
<br>&gt; extensions? Is it possible to give xpath and highlight the element=
?
<br></blockquote></blockquote>
------=_Part_735_7243641.1348150336361--

------=_Part_734_20713659.1348150336361--