Testing Can't滚动导航菜单
我正在使用Testcafe。 单击导航栏底部的元素时出现问题Testing Can't滚动导航菜单,testing,automation,automated-tests,e2e-testing,testcafe,Testing,Automation,Automated Tests,E2e Testing,Testcafe,我正在使用Testcafe。 单击导航栏底部的元素时出现问题 测试Url:https://devexpress.github.io/testcafe/documentation/test-api/ 测试代码: import {Selector} from 'testcafe' fixture('scroll') test('Can scroll sidebar', async t => { await t .navigateTo('https://devexp
测试Url:https://devexpress.github.io/testcafe/documentation/test-api/ 测试代码:
import {Selector} from 'testcafe'
fixture('scroll')
test('Can scroll sidebar', async t => {
await t
.navigateTo('https://devexpress.github.io/testcafe/documentation/test-api/')
.resizeWindow(1280, 600)
.click(Selector('a').withText('TypeScript Support'))
})
我想滚动导航栏并单击
TypeScript-Support
链接,但整个窗口是滚动的,而不是导航栏。这里有什么解决办法吗?导航菜单使用自定义滚动机制,因此自动滚动机制不应该工作。
您应该手动滚动到所需的菜单项,例如:。拖动('.ps-scrollbar-y',0600)