[wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread anna barbara ostrowska
Hi there, When I try to locate and click 'div' element using 'class' @browser.div(:class,'xyz').click following error occurs Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz' Any ideas how to solve it? Thanks in advance. Anna -- You received

Re: [wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 11:58 AM, anna barbara ostrowska ab.ostrow...@gmail.com wrote: @browser.div(:class,'xyz').click Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz' Please post html of the div. Is it in a frame? Željko -- watir.com - community manager

Re: [wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread anna barbara ostrowska
Hi, thanks for prompt response div class=nmp_SettingsSpice unselectable=ondiv class=nmm_Butta unselectable=onMore.../a and just in case env: RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] - INSTALLATION DIRECTORY:

Re: [wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 12:21 PM, anna barbara ostrowska ab.ostrow...@gmail.com wrote: div class=nmp_SettingsSpice unselectable=ondiv class=nmm_Butta unselectable=onMore…/a Please post your Watir code too. This should work if div is not in a frame: browser(:class = nmm_Butt).click I wonder if