How do you drive web browsers with Go?

polaris · · 811 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<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&#39;ve used tebeka&#39;s library quite a bit. Works well with selenium server and chrome and Firefox drivers. </p> <p>If you&#39;re writing tests, I&#39;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&#39;s structure.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

811 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传