I have a paragraph on a website that needs to be checked for its presence. The HTML code for the element is
<p class="subfooter__text" data-v-79ab1348=""> The Tesla is part of the <a href="//www.xyz.com/" target="_blank" rel="noopener nofollow">Automobile</a> publishing family.</p>
The specific text I am trying to verify is "The Tesla is part of the Automobile publishing family". Interestingly, the assertion fails when checking for the full text but passes when checking for individual words such as "Automobile" or "publishing family" or "Automobile publishing family". However, it never passes for the text before the href tag.
Below is the code snippet I am using:
browser.assert.containsText('p.subfooter__text', 'The Tesla is part of the Automobile publishing family');
. I have already ensured that all spacing issues are addressed correctly.
I would greatly appreciate any assistance with this issue.