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
moveCursorTo не идентичен moveTo в hermione 7 (move target out of bounds) #878
Comments
Еще в отличии от оригинальной реализации, в этой реализации проверка на typeof xOffset === 'number' не имеет смысла, так как в определении функции ставятся нули |
|
Thanks for your report. We'll look at this problem as soon as possible — the next responsible will pick it up. It's weird it doesn't match wdio7 behaviour, since we used almost the same code to implement this. Спасибо за репорт, посмотрим как только будет возможность — следующий ответственный подхватит эту проблему. Странно, что поведение не совпадает с wdio7, т.к. мы брали код почти без изменений. |
@hheimerd, Действительно, у меня получилось воспроизвести ошибку с moveCursorTo. Однако та же самая ошибка получается от использования чистого Причем интересно, что эта ошибка летит только при использовании Если есть какой-нибудь пример, в котором |
Closed due to inactivity. |
Verify latest release
Hermione version
8.5.0
Which area(s) of Hermione are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/gemini-testing/hermione/blob/4dc6c2fd812e6a3c9d4d82671d59187049d52761/src/browser/commands/moveCursorTo.ts#L27
Reproduction steps
4.1. вызвать browser.$('body').moveCursorTo()
4.2 вызвать browser.$('body').moveCursorTo({yOffset: 1200})
Describe the Bug
В обоих случаях произойдет ошибка "move target out of bounds"
Предполагаю это из-за того, что вьюпорт высотой 900px, а move происходит за его пределы (-200px и 1200px) соответственно.
Expected Behavior
Должен происходить сролл до нужного участка и мышь должна встать в указанную точку вне зависимости от размера вьюпорта.
Which Node.js version are you using?
20.10.0
The text was updated successfully, but these errors were encountered: