[wtr-general] Re: Clicking tabs has no effect

2008-12-05 Thread Chuck vdL

try mouseup instead of mousedown..

some webdevs seem to like to use two events, one to take care of the
visual effect when you 'press' the button down, and another than
actually makes things happen when the mouse button is released.  (a
side effect of this btw is that if a user 'slides' off the control
with the mouse button down, and then releases it, nothing happens..
depending on your viewpoint that can be a good or bad thing)

You can generally get a good idea of what's going on by looking at the
code and the names of the functions that are called when the events
associated with that element on the page are fired..  if you see an
event calling a function named something like 'flash' or 'hilight' or
somesuch, (really common with mouseover events) it's a good bet all
that's happening is a visual effect rendered by the browser.. Look for
a function with a name that would tend to indicate something more uh
'eventful' is going on, such as changetab or opendiv.. (actual
names of functions depend on your own dev's conventions etc)


On Dec 4, 1:38 am, LiquidBeard [EMAIL PROTECTED] wrote:
 This again causes it to flash yellow but with no effects in the
 browser.

 The DOM source shows the cell in question to look like this:

 TD class=tab-button id=tab2 title=Click to view this tab noWrap
 align=centerWorking/Non-Working/TD

 On Dec 3, 8:20 pm, al3kc [EMAIL PROTECTED] wrote:



  Try ie.cell(:id, tab2).fireEvent(onmousedown)- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Clicking tabs has no effect

2008-12-04 Thread LiquidBeard

This again causes it to flash yellow but with no effects in the
browser.

The DOM source shows the cell in question to look like this:

TD class=tab-button id=tab2 title=Click to view this tab noWrap
align=centerWorking/Non-Working/TD


On Dec 3, 8:20 pm, al3kc [EMAIL PROTECTED] wrote:
 Try ie.cell(:id, tab2).fireEvent(onmousedown)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Clicking tabs has no effect

2008-12-03 Thread al3kc

Try ie.cell(:id, tab2).fireEvent(onmousedown)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
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
-~--~~~~--~~--~--~---