有人使用 Yandex 的 Gemini 来测试 CSS 回归吗?
我遇到了以下问题:需要在某个页面中测试滚动,但据我所知,gemini 捕获整个页面并仅显示您通过添加设置的部分.setCaptureElements('someElement')
。
例如,我将捕获元素设置为html(其高度为 100%)并且我的内容非常巨大,但双子座屏幕截图仅显示部分页面而无法滚动,因为页面无法滚动...
也许你们中的一些人面临同样的问题并且有很酷的解决方案?谢谢!
gemini.suite('App-Name', function(test) {
test.setUrl('/')
.setCaptureElements('body')
.capture('Full Page', (actions) => actions.wait(2000))
});
//You can also use
.setCaptureElements('html') , if .setCaptureElements('body') is not working perfect for you.
You need to add this code in .gemini.js
browsers: {
'chrome-desktop': {
desiredCapabilities: {
browserName: 'chrome',
compositeImage: true,
screenshotMode: 'fullpage',
}
}
我有必要对滚动的页面进行截图。我需要整个页面的屏幕截图并进行了更改,让我做到了:
.setCaptureElements
存在滚动的元素(不是整个主体)。compositeImage: true
在配置文件中添加了一行。