How can I get the text value "This Text 1" and "This Text 2" with selemiun and python from the following html code:
<p>
<b>Studio:</b>
<a href="http://www.somelink.com/some_page/">This Text 1</a>
" | "
<b>Director:</b> This Text 2
</p>
I have tried in several ways like with this:
driver.find_element_by_xpath("//*[contains(text(), 'Director:')]")
but without get the result.