title: How Can I Verify Text Amount in Katalon
body: <p>I'm trying to verify a text in Katalon and my script isn't working. </p>
  
  <p>Here's my element:</p>
  
  <pre><code>
  &lt;span id="overviewTabStoreCredit" class="h2 strong amountCredit text-danger"&gt;-$100.00&lt;/span&gt;
  
  </code></pre>
  
  <p>Here's my script:</p>
  
  <pre><code>
  def StoreCreditAmount = '-$100.00'
  
  TestObject StoreCreditTO = findTestObject('Baseline/Page_Side Menu/Page_Customers/Page_Customer Card/span_Verify Credit Limit')
  
  WebUI.verifyElementAttributeValue(StoreCreditTO, 'text', StoreCreditAmount, GlobalVariable.G_Timeout_Tiny, FailureHandling.CONTINUE_ON_FAILURE)
  </code></pre>
  
  <p>When running the script, I get an error message, "Object does not have attribute 'text'"</p>
  
  <p>I also tried this to character it by class instead of text:</p>
  
  <pre><code>def StoreCreditAmount = 'h2 strong amountCredit text-danger'
  
  TestObject StoreCreditTO = findTestObject('Baseline/Page_Side Menu/Page_Customers/Page_Customer Card/span_Verify Credit Limit')
  
  WebUI.verifyElementAttributeValue(StoreCreditTO, 'class', StoreCreditAmount, GlobalVariable.G_Timeout_Tiny, FailureHandling.CONTINUE_ON_FAILURE)
  </code></pre>
  
  <p>I got this error:
  Has attribute 'class' with actual value 'text-success h2 strong amountCredit' instead of expected value 'h2 strong amountCredit text-danger' even though the value is correct.</p>