|
From: Marc G. <mgu...@ya...> - 2010-02-02 10:30:21
|
Hi Jason, nothing similar is available. If you're only interested into the handler declared by attributes, you should be able to gather this information walking through the DOM. If you are looking as well for listener attached from JS code, it may become more tricky because access methods are private. Cheers, Marc. -- Blog: http://mguillem.wordpress.com jason franklin-stokes wrote: > hi marc - yep that would be the definition. including mousedown on some parent element i.e. > > pseudo code to illustate: > > <div onmousedown window.location.href = "/whatever"> > <div> > <p>hello</p> > </div> > </div> > > element = getElements("hello") > element.clickable? > > > > > > > > On Jan 29, 2010, at 12:51 PM, Marc Guillemot wrote: > >> Hi, >> >> what would be your definition of clickable? An element on which >> something may happen when you click it? >> >> Cheers, >> Marc. >> -- >> Blog: http://mguillem.wordpress.com >> >> jason franklin-stokes wrote: >>> dear all, >>> >>> is it possible to find out if an element is clickable. i.e. i am looking for a function like: >>> >>> node.isClickable? >>> >>> for example i would like to collect all the image (and or text) nodes on the page and then with somthing like: >>> >>> (simple jruby code to illustrate the case) >>> >>> clickable_images = [ ] >>> images.each {|image| clickable_images << image if image.isClickable?) >>> >>> any ideas?? >>> >>> thanks a million >>> >>> jason. >> >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |