Tellurium Tutorial Series: XPath tools

3 views
Skip to first unread message

John.Ji...@gmail.com

unread,
Oct 31, 2008, 3:51:09 PM10/31/08
to tellurium-users
If you need to find the XPath for the web UI element, you need to use
some tools for that.

The first one would be the XPather plugin for Firefox. The new version
requires the "Dom Inspector"
firefox plugin, which provides the function "click element by click"
so that it will show you the xpath
for the given UI element when you click on the element. One helpful
thing is that the Dom Inspector
will also show you all the html attributes for the element such as
class, tag, etc. You can use that
for generating Tellurium clocators.

The second one should be Selenium IDE.

IntelliJ 8 comes with two additional functions in the "search" menu if
you open up an XML file.
This is very helpful if you have the html source but could not have a
running instance of the web application
because the Firefox plugin XPather, Selenium IDE, etc. require the
runtime web content.

The two new functions are "Evaluate XPath" and "Find by XPath". you
can see the following screenshot
for how it works.

http://tellurium-users.googlegroups.com/web/IntelliJXPath.png?gda=mICo9EMAAABBo5YKz4My4Er929brhwkD2Y3ey4Gb0NHlYGF56uorKSEo3jewBY3-oD4Lr8bAKJ4ytiJ-HdGYYcPi_09pl8N7FWLveOaWjzbYnpnkpmxcWg&gsc=NkiZ6gsAAAChOjvJIPSiq1Z7cVaxjfCJ
Reply all
Reply to author
Forward
0 new messages