简体   繁体   English

使用ruby的特定dom元素的屏幕截图

[英]screenshot of specific dom element using ruby

Is there a way to do this using capybara+phantomjs. 有没有办法使用capybara + phantomjs来做到一点。

Or perhaps something more complex like cropping a full page screenshot to the specific dom element? 或者更复杂的事情,比如将整页截图裁剪为特定的dom元素?

A pull request has been submitted for this feature. 已为此功能提交了拉取请求

It will be closed shortly, and you will be able to use 它将很快关闭,您将可以使用

driver.render selector: '#some_id`

in the next release. 在下一个版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM