| || |
Window Cannot be Setactive
My AUT is a web service. Homepage displays few tabs, Every tab contains Some hyperlinks. Script I wrote for Test Case is, clicking particular tab then particular hyperlink ,follows few steps and again click tab, link and so on follows in loop till exit condition.
My problem is script runs fine for some executions of loop then give err: #hyperlink # is not active. I tried to resolve this problem with setting links.setactive( ) method. But now it is giving err: Window can not be set active.
Also tried FlushCache( ) but of no use,
Please guide on this…!
Re: Window Cannot be Setactive
Try this, From Help...
Tell SilkTest not to verify that windows are active. There are two ways to do this:
To turn off the verification globally, uncheck the Verify that windows are active option on the Verification tab in the Agent Options dialog (select Options/Agent).
To turn off the option in your script on a case by case basis, add the following statement to the script, just before the line causing the error:
3 Then add the following line just after the line causing the error: