On Sat, Dec 1, 2012 at 10:30 PM, TommyW <tommy6206...@yahoo.com> wrote:
> browser.button(:id, "929940484").click

Looks like relevant HTML is:

<a href="#" class="buttons bid medium orange">Bid Now</a>

You should be able to click it with:

browser.a(:text => "Bid Now").click

By the way, that will click the first link with text "Bid Now".

If you want to click a specific link, find an parent element with an unique
attribute. For example:

<div id="864656507" class="864656507" bid="Bid Now">
...
<a href="#" class="buttons bid medium orange">Bid Now</a>
...

You could click exactly this "Bid Now" link with:

browser.div(:id => "864656507").a(:text => "Bid Now").click

Željko
--
https://leanpub.com/watirbook

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to