DevExpress / testcafe

A Node.js tool to automate end-to-end web testing.
https://testcafe.io
MIT License
9.82k stars 673 forks source link

TestCafe cannot click on the button if it's behind the StatusBar in the Proxyless mode #7483

Closed AlexKamaev closed 1 year ago

AlexKamaev commented 1 year ago
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>gh-1999</title>
    <style>
        button {
            position: fixed;
            bottom: 10px;
            left: 0;
        }
    </style>
</head>

<body>

<button>click me</button>
<div id="logger"></div>
<script>
    document.querySelector('button').addEventListener('click', function () {
        document.querySelector('#logger').innerHTML = 'OK';
    });
</script>
</body>
</html>
import { Selector } from 'testcafe';

fixture`New Fixture`
    .page `test.html`

test('iFrameIssue', async t => {
    await t.click('button');

    await t.expect(Selector('#logger').innerText).eql('OK');
});
github-actions[bot] commented 1 year ago

Release v2.3.1-rc.1 addresses this.