?
Solved

IF statement in VBScript to check the 'attached text' property of a WinButton

Posted on 2008-11-10
1
Medium Priority
?
424 Views
Last Modified: 2012-05-05
See the attached .doc file for a complete descriptio of my question.  Thanks!
VBScript-WinButtonText-11-10-08.doc
0
Comment
Question by:morciani
1 Comment
 

Accepted Solution

by:
morciani earned 0 total points
ID: 22930704
Hi All,

I'm working on building some scripting using QuickTest Professional (and learning VBScript along the way).  Take a look at the following code snippet:

....
Browser("CBS signon").Page("Personal Market Billing_10").WebButton("Submit").Click
      If <condition> Then
            RunAction "Path_DuplicatePayment", oneIteration
            RunAction "MakeSuccessfulCCPayments", oneIteration
      End If
Browser("CBS signon").Dialog("Microsoft Internet Explorer").WinButton("OK").Click
....

I want to build an If statement that checks the Text (or some other unique property) of the dialog box that is made viewable after the Submit action.  Can someone help me with the syntax of the <condition> that Im testing for?  The dialog box that is displayed is as follows (see attached file):
_______
I want the condition to check the 'attached text' property of the OK WinButton.  I just need help with the syntax&.  Thanks!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question