<p>I need to drive a web browser and have found a few libs for this. Anyone have preferences on which one to use?</p>
<ul>
<li><a href="https://github.com/knq/chromedp">https://github.com/knq/chromedp</a></li>
<li><a href="https://github.com/bunsenapp/go-selenium">https://github.com/bunsenapp/go-selenium</a></li>
<li><a href="https://github.com/tebeka/selenium">https://github.com/tebeka/selenium</a></li>
</ul>
<hr/>**评论:**<br/><br/>twek: <pre><p>I just started using chromedp, it works as advertised the only problem I have had so far is apparently some websites can tell you are running in chrome headless and will act differently, this can lead to some gotchas.</p></pre>carleeto: <pre><p>I've used tebeka's library quite a bit. Works well with selenium server and chrome and Firefox drivers. </p>
<p>If you're writing tests, I'd also recommend using goconvey (<a href="http://goconvey.co/" rel="nofollow">http://goconvey.co/</a>) for slightly more descriptive tests that work well with a website's structure.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传