[wtr-general] Re: Having a Devil of a time accessing this button...
Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so, what IS the error) etc. On Jul 27, 2:09 pm, Eric Mathiesen mathiese...@gmail.com wrote: Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the control I'm trying to click Code: tdtable align='' cellspacing='0' border='0' cellpadding='4' summary='Table to hold button.'trtd class='whitebg'input onFocus=root.hover(this, 'win-btn-over') onMouseOver=root.hover(this, 'win-btn-over') onMouseOut=root.hover(this, 'win-btn') onClick='root.handleOnClick(document, this)' class='win-btn' id='generate::0' name='generate::0' value='Add' onBlur=root.hover(this, 'win-btn') type='BUTTON'/td/tr/table/td Many Thanks in Advance, Eric -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Having a Devil of a time accessing this button...
I have audio on my automation test machine, and I have it setup for an audible click when it simulates a mouse click. Watir is driving the mouseclick on the element under test, however Internet Explorer just stays idle on the page and WATIR reports; Loaded suite Started Finished in 0.0 seconds. 0 tests, 0 assertions, 0 failures, 0 errors Tried changing case of the onClick event to no avail... Cheers, Eric On Tue, Jul 27, 2010 at 3:38 PM, Chuck van der Linden sqa...@gmail.comwrote: Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so, what IS the error) etc. On Jul 27, 2:09 pm, Eric Mathiesen mathiese...@gmail.com wrote: Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the control I'm trying to click Code: tdtable align='' cellspacing='0' border='0' cellpadding='4' summary='Table to hold button.'trtd class='whitebg'input onFocus=root.hover(this, 'win-btn-over') onMouseOver=root.hover(this, 'win-btn-over') onMouseOut=root.hover(this, 'win-btn') onClick='root.handleOnClick(document, this)' class='win-btn' id='generate::0' name='generate::0' value='Add' onBlur=root.hover(this, 'win-btn') type='BUTTON'/td/tr/table/td Many Thanks in Advance, Eric -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Having a Devil of a time accessing this button...
did you try onMouseOver first, then the click? that would sort of be the natural sequence On Jul 27, 3:44 pm, Eric Mathiesen mathiese...@gmail.com wrote: I have audio on my automation test machine, and I have it setup for an audible click when it simulates a mouse click. Watir is driving the mouseclick on the element under test, however Internet Explorer just stays idle on the page and WATIR reports; Loaded suite Started Finished in 0.0 seconds. 0 tests, 0 assertions, 0 failures, 0 errors Tried changing case of the onClick event to no avail... Cheers, Eric On Tue, Jul 27, 2010 at 3:38 PM, Chuck van der Linden sqa...@gmail.comwrote: Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so, what IS the error) etc. On Jul 27, 2:09 pm, Eric Mathiesen mathiese...@gmail.com wrote: Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the control I'm trying to click Code: tdtable align='' cellspacing='0' border='0' cellpadding='4' summary='Table to hold button.'trtd class='whitebg'input onFocus=root.hover(this, 'win-btn-over') onMouseOver=root.hover(this, 'win-btn-over') onMouseOut=root.hover(this, 'win-btn') onClick='root.handleOnClick(document, this)' class='win-btn' id='generate::0' name='generate::0' value='Add' onBlur=root.hover(this, 'win-btn') type='BUTTON'/td/tr/table/td Many Thanks in Advance, Eric -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@goog legroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com