-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.takeScreenshot();没看到要截图的路径保存地址啊 #5
Comments
@lengyao88 这个取决你用的客户端,takeScreenshot没有参数,并不会返回截图的保存地址,返回的是图片的base64字符串,如果你的客户端支持saveScreenshot类似的函数,通常是saveScreenshot(path) 这样,就返回截图地址了。 |
好的,我先试下。 |
如果是PC端测试 可使用 wd-next API参见https://github.com/macacajs/wd-next/tree/master/docs 移动端测试 可使用 wd API参见https://github.com/admc/wd/blob/master/doc/api.md |
我想实现一个滑动的话,看https://github.com/admc/wd |
可以 |
GET /session/:sessionId/screenshot takeScreenshot(cb) -> cb(err, screenshot) takeScreenshot()我设置为takeScreenshot(path)但是直接报错啊。 |
.takeScreenshot(path); 我是这样写的,我看到上面是有定义这个path的,但是这个应用应该是支持截图的把。 |
@lengyao88 你看你用的库 如果是wd,是有两个方法的,takeScreenshot() 返回 Base64,saveScreenshot(path) 才是保存到path地址。 |
No description provided.
The text was updated successfully, but these errors were encountered: