擅长:python、mysql、java
<p>根据您的问题,您正在尝试刮取<code><p></code>标记并提取文本<code>Press "New Word"</code>。为此,您可以使用以下代码行:</p>
<pre><code>print(driver.find_element_by_xpath("//div[@id='gennedword-container' and @class='small-12 columns']/p[@id='gennedword' and @class='text-center']").get_attribute('innerHTML'))
</code></pre>