It is a link, not a button
Thanks. Wesley Chen. For life, the easier, the better. On Wed, Jan 6, 2010 at 6:42 AM, Tiffany Fodor <[email protected]> wrote: > It looks like this may be a button or span, not a link. > > I don't think a span or button can be identified with the href in > Watir, so use the id: > > $b.span(:id, 'tc676').click > > -or- > > $b.button(:id, 'tc676').click > > Hope this helps! > > -Tiffany > > > On Jan 5, 3:28 pm, tester86 <[email protected]> wrote: > > Selenium finds the button (here is the selenium) > > > > //a...@id=tc676]/span/label > > > > but it does not work in Watir? > > > > On Jan 5, 4:23 pm, tester86 <[email protected]> wrote: > > > > > Hi > > > > > I have the following watir code: > > > > > $b.link(:href, "javascript:;").click > > > > > but it does not click on the button. > > > > > <a id="tc676" role="button" href="javascript:;"> > > > <span class="button inner" style="min-width: 80px;"> > > > <label class="sc-button ellipsis">Reset</label> > > > </span> > > > </a> > > > > > Does any one have any ideas? > > > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to [email protected] > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/watir-general >
-- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general
