After moving on Java 1.8 there is a security warning showing on starting web-start application.
UFT can see all objects of this Java dialog by object spy. So I have coded message checking and confirmation block:
If JavaDialog("label:=Security Warning").Exist(40) Then
JavaDialog("label:=Security Warning").JavaCheckBox("text:=I accept the risk and want to run this application\.").Set True
JavaDialog("label:=Security Warning").JavaButton("label:=Run")
End If
But during test execution even 40-seconds waiting for existance of JavaDialog("label:=Security Warning")
returns False
right at the moment, without waiting at all.
What is the reason for this behaviour? How to fix?