How can I verify that saved data is displayed corrrectly using Selenium + C#?



  • <p class="details-info-block__text"><span class="details-info-block__label">Business Address 1:</span> 1010 Priority Way West Dr</p>
    

    I want to verify the address value (e.g. "1010 Priority Way West Dr"). But retrieving it using XPath //span[contains(text(), 'Business Address 1')]/.. returns the following string

    Business Address 1: 1010 Priority Way West Dr





Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2