Hi M T, 
I personally have had trouble myself making the `moveToElement()` work.
I am using mostly Chrome for some time now.
I have made good experience using these helper functions:

    void scrollIntoCenterOfScreen(Navigator navigator) {
        def yPosition = navigator.y
        def windowHeight = browser.js.'window.innerHeight'
        browser.js."window.scrollTo(0, ${yPosition - windowHeight / 2})"
    }

    void scrollToBottomOfScreen() {
        def yPosition = browser.js.'document.body.scrollHeight'
        browser.js."window.scrollTo(0, ${yPosition})"
    }



I feel that for simple cases, using JavaScript like this has a good chance of 
working, regardless of the frontend technology.

Best regards, 
Thomas

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/42e46d5e-c0bc-47cc-bbf7-3aac6e8c4027%40googlegroups.com.

Reply via email to