There are many occasions, using Watir or Watir-Webdriver, when we need to do some testing in one browser window, open another, possibly close it, and return to the first. Watir handles this a bit more transparently than Watir-Webdriver. With Watir you are dealing directly with IE through OLE and IE handles windows and tabs differently…Read more
If your test case requires you to validate the text of a modal dialog, you can use the AutoIT function WinGetText.
Title = "message from webpage"
IEText = ai.WinGetText(Title)
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
Modal dialogs are pop-ups that need attention before the user can go back to their testing window. Modal dialogs are difficult to automate using only Ruby and Watir because you can’t access the html source code of a modal dialog. Since AutoIT does not require any source code to operate, it is a viable tool…Read more