无法滚动导航菜单

问题描述 投票:2回答:1

我正在使用Testcafe。我在单击导航栏底部的元素时遇到问题。


测试网址: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链接,但是整个窗口都是滚动的,而不是导航栏。这里有任何解决方法吗?

testing automation automated-tests e2e-testing testcafe
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.