UFT does not recognize Java Security Warning

2017-01-27T19:36:11

After moving on Java 1.8 there is a security warning showing on starting web-start application.

enter image description here

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?

Copyright License:
Author:「Ivan Gerasimenko」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/41893083/uft-does-not-recognize-java-security-warning

About “UFT does not recognize Java Security Warning” questions

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
I'm new to HP-UFT and need to automate a number of test environments using HTTPS. These environments do not have valid security certificates (they're self-signed) & I'd like to configure UFT to
Am since long trying to add objects from a Java based application in UFT 14.52 but not able to. Made sure that all hooks are added to env vars. UFT is behaving weird ie it spies the object correct...
UFT 14.0 is not able to recognize objects in chrome version 60 . I have the HP UFT functional testing agent enabled in the extensions.
On certain pages in my tests I have are-you-sure-popups that my or may not show up. I solve this obvious problem using On Error Resume Next [Click OK] This works fine but for all the popups that ...
I need to open a .bat file that's on the network drive. When UFT Developer opens it, a security window pops up "We can't verify who created this file. Are you sure you want to run this file?&q...
Java identification issue using uft I am unable to spy the object of java application using uft One old script which is created by someone from different machine using different uft version, it is
I am doing manual work on Bloomberg terminal on daily basis. I am looking to automate manual work using UFT tool, but UFT is not able to recognize Bloomberg terminal and capture it's objects. I tried
I am trying to automize our tests. We have a browser version of SAP Event Manager. I was trying to capture the events from login, click on the Event Manager link, then enter a tracking number in ...
I am automating a Java swing application. There is a update in AUT. Object is recognized in all previous versions of AUT, but after the update objects are not recognized. When I checked the previous

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.