How to detect Javascript pop-up notifications in WatiN?
Posted
by Ian P
on Stack Overflow
See other posts from Stack Overflow
or by Ian P
Published on 2010-04-19T01:45:45Z
Indexed on
2010/04/19
1:53 UTC
Read the original article
Hit count: 585
I have a, what seems to be, rather common scenario I'm trying to work through.
I have a site that accepts input through two different text fields. If the input is malformed or invalid, I receive a Javascript pop-up notification.
I will not always receive one, but I should in the event of (like I said earlier) malformed data, or when a search result couldn't be found.
How can I detect this in WatiN?
A quick Google search produced results that show how to click through them, but I'm curious as to whether or not I can detect when I get one?
In case anyone is wondering, I'm using WatiN to do some screen scraping for me, rather than integration testing :)
Thanks in advance!
Ian
© Stack Overflow or respective owner