<https://lh6.googleusercontent.com/-yJhLx4lKr-c/UnwKN99KkyI/AAAAAAAACpU/4NGDod8Wk2Q/s1600/Capture2.JPG>
<https://lh5.googleusercontent.com/-63qkzGugEaI/UnwKMSG7bBI/AAAAAAAACpM/GeErpwk3uks/s1600/Capture.JPG> Hi, I am using descriptive programing in QTP 11.5, no obj repository. I have simple web app, but there is a Java dialog window I need to open and select a checkbox before I click Run button. Can you guys help me with the code? What I a m doing wrong? Dim JavaBro, JavaDial, Jobj, JBox, JButton, JWindow Set JavaBro = Browser("micclass:=Browser") Set JavaDial = JavaDialog("micclass:=JavaDialog") Set JButton = JavaButton ("micclass:=JavaButton") Set JWindow = JavaWindow ("micclass:=JavaWindow") Set Jobj = JavaObject("micclass:=JavaObject") Set JBox = JavaCheckBox("micclass:=JavaCheckBox") Set oDesc = Description.Create() oDesc("micclass").Value = "JavaCheckBox" JavaDialog("text:=Security Warning").JavaCheckBox("label:=I accept the risk and want to run this application\.").Set "ON" JavaDialog("text:=Security Warning").JavaButton("text:=Run").Click I am attaching the error message as well. -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
