On Mon, Aug 27, 2012 at 8:21 AM, Ashish Juyal <[email protected]>
wrote:
>>>>     I am trying to click a div ,here's the code
>>>> <td class="ui-pg-button ui-corner-all" title="Delete Item"><div
class="ui-pg-div"><span class="ui-icon
ui-icon-trash"></span>Delete</div></td>

Try this:

require "watir-webdriver"
browser = Watir::Browser.new
browser.goto url # you have to define url earlier
browser.div(:class => "ui-pg-div").click

Željko
--
filipin.eu

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to