Hi 
     Thanks for the reply but i am doing scripting in Java.
Here the code i had applied 
WebElement elements 
=driver.findElement(By.xpath("//*[@id='ItemMasterPager_left']/table/tbody/tr/td[1]/div[contains(text(),'Delete')]"));
       
        
       
        Actions moveTo = new Actions(driver);
        moveTo.moveToElement(elements).click().build().perform();
but its not working.




On Monday, 27 August 2012 14:58:46 UTC+5:30, Željko Filipin wrote:
>
> On Mon, Aug 27, 2012 at 8:21 AM, Ashish Juyal 
> <[email protected]<javascript:>> 
> 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