15 years ago
Javascript confirmation messagebox is not interacted with by TC8
Hi,
I have a website (built with javascript) I am testing where TC8 can see a popped up confirmation box and all of its properties and methods, but won't actually click the OK button. I have tried the following lines of script in my test script:
1. Call iexplore.dlgMessageFromWebpage.btnOK.ClickButton
2. Call iexplore.FindChild("WndCaption","OK",10).Click()
3. Call iexplore.dlgMessageFromWebpage.btnOK.SetFocus
Call iexplore.dlgMessageFromWebpage.btnOK.Keys ("[Enter]")
and various other strategies....
Just for the record, TC8 "sees" the dialog, "sees" the buttons and other properties / methods, and fills in the intelli-sense code just fine. When any of the above lines are used, the OK button changes color (like it was clicked or at least got focus).
I have these same confirmation boxes scattered throughout the website, and it is going to become a real automation issue if I can't script these out.
Any help would be appreciated.
Thanks!
John
I have a website (built with javascript) I am testing where TC8 can see a popped up confirmation box and all of its properties and methods, but won't actually click the OK button. I have tried the following lines of script in my test script:
1. Call iexplore.dlgMessageFromWebpage.btnOK.ClickButton
2. Call iexplore.FindChild("WndCaption","OK",10).Click()
3. Call iexplore.dlgMessageFromWebpage.btnOK.SetFocus
Call iexplore.dlgMessageFromWebpage.btnOK.Keys ("[Enter]")
and various other strategies....
Just for the record, TC8 "sees" the dialog, "sees" the buttons and other properties / methods, and fills in the intelli-sense code just fine. When any of the above lines are used, the OK button changes color (like it was clicked or at least got focus).
I have these same confirmation boxes scattered throughout the website, and it is going to become a real automation issue if I can't script these out.
Any help would be appreciated.
Thanks!
John