Scroll to element using Galen Java

72 views
Skip to first unread message

karthik manjunath

unread,
Oct 13, 2020, 12:08:24 PM10/13/20
to Galen Framework
hi,

I am currently working on a webpage which is very lengthy. I have split the page to different layout / sections like header, footer and body.

Since the page is lengthy i will have to scroll to ensure that element is visible on the screen.
 and then call the spec file.

Below is the footer spec file.

@objects
    global_footer        css footer[class='cmp-global-footer']
    footer_conatainer    css *[class='row footer-container']
    
=global footer=
    @on desktop
        global_footer:
            width 100% of viewport/width
            height 60px
            aligned vertically all viewport
        footer_conatainer:
            inside viewport 130 to 140px left
            height 60px  
            centered horizontally inside viewport
    
    @on mobile
        global_footer:
            width ~ 100 % of viewport/width
            height 60px
            aligned vertically all viewport
            centered horizontally inside viewport 1px   
        footer_conatainer:
            inside viewport 12 to 15px left right 
            centered horizontally inside viewport 1px

The tests are passing, but the report does not show the footer element screen shot.
Is there a way to scroll and then call the spec file.?

I am currently using galen 2.3.0 java.

<dependency>
<groupId>com.galenframework</groupId>
<artifactId>galen-java-support</artifactId>
<version>2.3.0</version>
</dependency>

Please suggest how to proceed with this.

Thanks and regards,
Karthik

karthik holla

unread,
Feb 23, 2021, 3:00:46 AM2/23/21
to Galen Framework
hi All,

Any suggestion on this?

Rahul Rai

unread,
Dec 15, 2021, 9:17:33 AM12/15/21
to Galen Framework
Hi Karthik,

Did you received anything regarding how to scroll down in a page and the verify all the elements using gspec file?

Reply all
Reply to author
Forward
0 new messages