Željko Filipin's blog.
Home Blog Tags Now License

View on GitHub
3 July 2007

Find Element by XPath

by Željko Filipin

I had to click a h4 headline.

<h4 id="addproject">Create a new project</h4>

This did not work.

browser.h4(:id, "addproject").click

I posted a question to wtr-general mailing list and Angrez Singh was kind enough to help.

This will click h4 headline.

tags: code - ruby