从selenium webdriver中的两个para中选择文本

时间:2016-11-02 22:22:17

标签: selenium-webdriver

所以我必须自动选择Selenium webdriver中以下2段的文字。我想从 p1 &#34中进行选择;主要是为了测试目的而自动化Web应用程序,但当然不仅限于此。无聊的基于Web的管理任务也可以(也应该!)也是自动化的。"直到 p2 " Selenium得到了一些最大的浏览器供应商的支持,这些供应商已采取(或正在采取)将Selenium作为其浏览器的本机部分的步骤。"有人可以帮帮我吗?



<div class="para1" id="p1" first-line="2" turnover="1"><span class="link">Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.</div></div>

<div class="para2"><a name="p2"></a><div class="paraText" id="p2" first-line="2" turnover="1">Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.</div>
</div>
&#13;
&#13;
&#13;

0 个答案:

没有答案