How can I test the text from a alert box message ?
How can I click cancel for one test and OK for another for the same alert box?
Not 100% sure about this, but I believe you can use the FindInHTML() function to look for the text in your message box. Maybe someone can back me up on this. As for clicking the different values (OK and CANCEL), it should pick up which button or selection you make. Can someone back this up ?
I ran into a similar problem a little while back. The function RSWApp.LastDialogtext() will return a string with the inner text of the last dialog encountered.
nice. that came in handy for me.
extra side note about that:
the RSWApp.LastDialogtext method worked only on the page where the dialog occured.
i tested further and I got the value for the LastDialogtext even after I passed the page where it happened.
[ 04-19-2006, 08:28 AM: Message edited by: eTesterJay ]