You have to call the function push_alert_button before clicking the button that invokes a _javascript_ pop up. So I think this should work:
require 'watir'
require 'watir/WindowHelper'
.
.code for opening up page
.
helper = WindowHelper.new
helper.push_alert_button()
ie.frame("TopToolbar2").link(:id,"a_History").click
Regards,
Angrez
On 12/18/05, Tolou Taherinia <[EMAIL PROTECTED]> wrote:
Hi,
This is the code I have in order to click on a button which will invoke a _javascript_ popup, however the ok button on the alert is never clicked and I do not get any errors. I based my code on the jscriptExtraAlert.rb code. Any help would be greately appreciated.
require 'watir'
require 'watir/WindowHelper'
.
.code for opening up page
.
ie.frame("TopToolbar2").link(:id,"a_History").click
helper = WindowHelper.new
helper.push_alert_button()
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
