I have an element within tag that has release notes. I have to validate if it contains specific text. I am able to extract the text using following code:
WebDriverWait(self.driver, 10).until(EC.visibility_of_element_located((By.XPATH, ManageSoftware.release_notes_xpath))).get_attribute("innerHTML")
How do I assert if it contain a specific text, say "abc". Is there any function like contains() or isPresent() that I can use here?
The code that I am working on is:
<div id="dialog" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 0px; max-height: none; height: 483px;">
<pre>
Text is here.
</pre>
</div>