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

Tue, 07 Jul 2009 19:27:38 -0700

Well, I finally figured out how to add <font> to Watir, as you
suggested, and that seems to work great. Thank you so much!

-Dylan

On Jul 3, 12:42 am, Željko Filipin <zeljko.fili...@wa-research.ch>
wrote:
> 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