<p>所以在PHP世界中,有一个抽象层可以使用,称为Mink,它运行在selenium之上,它提供了比纯selenium webdriver更好的界面。下面是一个示例:</p>
<pre><code>// set the default session name
$mink->setDefaultSessionName('goutte2');
// visit a page
$mink->getSession()->visit($startUrl);
// call to getSession() without argument will always return a default session if has one (goutte2 here)
$mink->getSession()->getPage()->findLink('Downloads')->click();
echo $mink->getSession()->getPage()->getContent();
</code></pre>
<p>在Python世界中有类似的项目吗?我的googlefu没什么进展。它不一定非得是一个测试框架,我想用它来做一些信息提取,而不必直接编写webdriver代码。在</p>