The web page I'm automating returns a value of either Yes or No in order to determine customer eligibility. I'm trying to figure out the steps on how to write a conditional statement that returns a message box that indicates Yes if the customer is eligible or No if not.
Here is what I attempted: 1) I object cloned the text "Yes" from the web page.
2) I selected "Get Property" and for the selected property option, I entered "HTML InnerText" 3) I then assigned a variable vYes, which has a value of "Yes" 4) Next, I entered a Else statement which contains a variable of vNo, with it's value set to No.
This is what the code looks like:
if $vYes$ Equal To (=) "Yes" Then
Message Box: "The Customer is Eligible for Service"
Else if $vNo$ Equal To (=) "No" Then
Message Box: "The Customer is not eligible."
End If
...The problem am encountering, when the page return Yes, the results of the else condition is returned. e.g. The Customer is not eligible.
Could I get some help please?
Aucun commentaire:
Enregistrer un commentaire