Comments (5)
Еще в отличии от оригинальной реализации, в этой реализации проверка на typeof xOffset === 'number' не имеет смысла, так как в определении функции ставятся нули
https://github.com/gemini-testing/hermione/blob/4dc6c2fd812e6a3c9d4d82671d59187049d52761/src/browser/commands/moveCursorTo.ts#L14
from hermione.
moveTo({xOffset: -width / 2, yOffset: -height / 2 })
тоже не работает, так что возможно снова стал актуален этот баг
webdriverio/webdriverio#4206
from hermione.
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, т.к. мы брали код почти без изменений.
from hermione.
@hheimerd, Действительно, у меня получилось воспроизвести ошибку с moveCursorTo. Однако та же самая ошибка получается от использования чистого moveTo
с [email protected]
. Мы бы предпочли тут сохранить оригинальное поведение moveTo
в [email protected]
и кидать ошибку в тех же случаях, в которых ее кидает webdriverio
.
Причем интересно, что эта ошибка летит только при использовании webdriver
протокола автоматизации. С devtools
ошибок нет.
Если есть какой-нибудь пример, в котором hermione@7
в таком случае не кидает ошибку - приносите, посмотрим.
from hermione.
Closed due to inactivity.
from hermione.
Related Issues (20)
- Option resetCursor moves the cursor to the center of the screen HOT 2
- Methods of the object stored in hermione.ctx are not passed to the test HOT 9
- Некорректный тип функции `it(` HOT 4
- v9.0.0: Breaking changes
- Use Chrome's new Headless mode HOT 3
- Отсутствуют типы для метода moveCursorTo HOT 1
- Тесты на типы HOT 2
- Perform preliminary research and develop a solution for automatic API reference generation or typings
- hermione.ctx нельзя типизировать HOT 4
- Not clear how to create wrapper and fail test with browser.mock HOT 2
- Add a handy way to screenshot the viewport
- В тесте недоступно поле browserId HOT 5
- Пропала типизация describe/it и т.п. HOT 2
- Preload the element completely before taking a screenshot
- Implement throttling of test commands
- Add ability to rerun all failed tests
- Update webdriverio package
- Вытащить наружу методы по работе с браузером HOT 4
- Add github-action for CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermione.