Getting CheckBox is not visible on page error

116 views
Skip to first unread message

scad...@gmail.com

unread,
Jul 1, 2017, 2:02:47 PM7/1/17
to Galen Framework
Hi,

We're currently using the Galen framework integrated with our Selenium Java framework. I'd like to point out we've had great results with the tool!

We recently ran into an issue that has us stumped.  Galen is unable to view checkboxes on one of our test pages.  I've defined the checkboxes using a variety of xpaths, but always get the error CheckBox is not visible on page.

Can someone take a quick look at the checkbox components on the page https://resource.qal1.digitalinsight.com/leapfrog/snapshot/doc/components/react/#checkBoxes and let me know why Galen is unable to view the 3 checkboxes?  Also is there a way we can change the Galen spec file or the application's HTML code so Galen does find the checkboxes?

Here is the spec file for the checkboxes

@objects
    checkboxContainer        xpath    //div[@data-reactid='350']
    checkBoxText            xpath    //label[contains (@class, 'di-checkbox')]/span
    checkBox1                xpath    //label[1]/input[@type='checkbox']
    checkBox2                xpath    //label[2]/input[@type='checkbox']
    checkBox3                xpath    //label[3]/input[@type='checkbox']


= Common UI Components =   
    @on tablet, desktop, Ldesktop
        checkBox1:
            width    29px
            height    29px
            inside checkboxContainer 21 px left
        checkBox2:
            width    29px
            height    29px
            inside checkboxContainer 21 px left
        checkBox3:
            width    29px
            height    29px
            inside checkboxContainer 21 px left

Thanks,
Steve

SwooshAaoosh

unread,
Jul 10, 2017, 6:51:34 PM7/10/17
to Galen Framework
The check-boxes are indeed not visible, If you check for presence of the check-boxes, it prolly would return true, but Galen interacts with the UI just like a human eye would because Galen was designed to test responsiveness, not functionality, if its not visible on the viewport, its not visible. I suggest that you add enough sleep in your script for you to manually scrolling to the area where the checkboxes are and run the spec validation and see if that works, if it does, insert JS to scroll into the script
PS. I'm not involved in the development of Galen FW, feel free to correct me if i'm wrong
Reply all
Reply to author
Forward
0 new messages