开发者

How to use Firebug Lite API?

I wa开发者_JAVA百科nt to have a functionality to highlight webpage elements on mouse hover and select them, so that I could get their XPaths etc.

I want to have only this much of functionality for my own use, also which can be run on all browsers if possible.

Can I use firebug lite api or sort of same thing for my needs?


You don't need to use firebug lite. You can use firebug standard for this.

Just click in element (in screen). After, in HTML tab of firebug right-click and choose Copy XPath


Firebug lite is nothing more than a javascript file that you inject in your page. You can do so conditionally when you're using a technology like PHP or ASP.NET (or alternatives).

It doesn't however give you the raw/full power you're used to of using firebug itself. Besides if it's only for you, I suggest you simply install firefox in combination with firebug instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜