| || |
User andy wong (AWong@exceedcommerce.com.nospam) posted:
When I establish a verification point for a Web page link and then run
the script, my script fails. It passes a Result of 1. Any reason why it
should be failing. Thanks in advance. Here the code:
Dim Result as Integer
Window SetTestContext, "Caption=xxxxx - Microsoft Internet Explorer",
Result = HTMLLinkVP (CompareProperties, "HTMLText=Edit Credit Card
Info", "VP=Object Properties;Wait=2,30")
Window ResetTestContext, "", ""
if result = sqaSuccess Then
Msgbox "SQA Unsuccessful"
Exceed Internet Commerce
User Crunk John (ext3jpc) (firstname.lastname@example.org) posted:
It looks like you didn't start the browser from the script; you must do this
for it to find the objects in the document. If this is not the case, you
should use the WebBrowser or whatever you called the object in the Window
User Rick Wellinghoff (RWELLINGHOFF@remember.com.nospam) posted:
Are you sure the variable "Result" has a value of "sqaSuccess" when the VP
passes? My VP's have always returned a value of "0" for failure and "1" for
success. Try putting the statement 'Msgbox Result' after your VP in the
script. That way you'll see what value Result has when successful.