[wtr-general] Re: Dealing with , and triggering Javascript

Fri, 03 Jul 2009 00:43:28 -0700

On Fri, Jul 3, 2009 at 12:54 AM, Dylan <mej...@gmail.com> wrote:
> <font class="link" title="Click Here" onclick="javaScriptCommand
> ();">Click Here</font>

Try this:
browser.element_by_xpath("//fo...@title='Click Here']/").click

More information:

http://wiki.openqa.org/display/WTR/XPath

And you can always extend Watir to make this possible:

browser.font(:title, "Click Here").click

http://zeljkofilipin.com/2007/07/04/extend-watir/

Željko
--
http://watirpodcast.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to