Seems none of the code I've tried has any affect. My intention is to close any and all JavaScript prompts that may come up by hitting the "OK" button. Problem is, my script has no affect on the prompts that come up. In other words, it does nothing.
Here's what I have:
fx = FireWatir::Firefox.start(somepage)
fx.startClicker("OK")
fx.button(:id, "OK").click
fx.button(:id, "CONFIRM").click
The HTML:
<script type="text/javascript">
alert("Alert!");
window.confirm("Confirm?");
</script>
The text in the prompts can change, my intention is to hit OK regardless of what is inside the alert/confirm prompt.
PS: I'm running Ubuntu.