In Selenide library, in SelenideElement.java, there are the methods to scroll to the element.
- SelenideElement scrollIntoView(boolean alignToTop);
- SelenideElement scrollIntoView(String scrollIntoViewOptions);
(I personally use the first one.)
For a Masquerade component, the methods can be applied if getDelegete() performed before, but it returns SelenideElement and the Component's methods can't be applied after.
What I want is to build lines like this: screen.someButton.scrollIntoView(true).click();
I guess it could be done by adding the methods in com.haulmont.masquerade.base.SelenideElementWrapper.
In Selenide library, in SelenideElement.java, there are the methods to scroll to the element.
(I personally use the first one.)
For a Masquerade component, the methods can be applied if getDelegete() performed before, but it returns SelenideElement and the Component's methods can't be applied after.
What I want is to build lines like this: screen.someButton.scrollIntoView(true).click();
I guess it could be done by adding the methods in com.haulmont.masquerade.base.SelenideElementWrapper.