If your test case requires you to validate the text of a modal dialog, you can use the AutoIT function WinGetText.
1 2 3 |
Title = "message from webpage" IEText = ai.WinGetText(Title) puts IEText |
However, this method only works for IE modal popups. When using Firefox, the WinGetText function will output a nil. One possible solution around this is to highlight the text, copy it, send it…
Read more