This might be a dumb question, but considering the following semi-pseudo code. How do I compare the string in windws.alert?
var alertCalled = false;
// I'm having trouble with the following line
if (windows.alert().text == 'specific string') {
alertCalled = true;
}
Thanks.
alertfunction accepts a string as an input but does not echo it back. I am not sure but it might be possible to hook your own implementation of alert function to the native one. This worked in FireFox and IE8: