Python中文
首页
教程
问答
标签
搜索
登录
注册
如何在python中使用phantomjs和selenium webdriver设置窗口大小
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正在尝试用python webdriver驱动的phantomjs获得一个完整的浏览器屏幕截图。现在我的截图是927 x 870,我想重置它。我试过:</p> <pre><code>driver.manage().window().setSize(new Dimension(1400,1000)) </code></pre> <p>基于<a href="https://groups.google.com/forum/#!msg/phantomjs/f29lxBQNLqY/_Pyi7j9EEVQJ" rel="nofollow noreferrer">this source</a>,但这会产生语法错误。</p> <p>我该怎么做?</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>对于Java,维度导入必须是:</p> <pre><code>import org.openqa.selenium.Dimension; </code></pre> <p>它不会给出语法错误</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
得到媒体:缩略图url从rss源
4 回答
得到对数正态随机数给定log10均值和log10标准差
3 回答
得到工作,波斯特不
9 回答
得到左半积和右半积的绝对差最小的元素
7 回答
得到幻数错误?
9 回答
得到异常错误“线程中的异常-1(最有可能在解释器关闭期间引发)”,它使用Parami
8 回答
得到循环
2 回答
得到德语的语法变化
8 回答
得到我认为是好的结果,但还不够
9 回答
得到截断svd.transform()返回float16而不是float64
1 回答
得到所有不相交的集合的并集
1 回答
得到所有函数求值组合的矩阵
2 回答
得到扭曲延迟取消错误当使用刮痧时
4 回答
得到控制台.log使用Selenium python从Chrome输出一次,然后调用第二次为空
7 回答
得到操作系统环境通过NSSM运行Python
2 回答
得到数学方程中的表达式
9 回答
得到数据库结构属性
10 回答
得到整数的后三位
5 回答
得到整数的第n位精度
5 回答
得到最低落的reddit评论
2 回答