I am having trouble with auto-scrolling in FireFox. We're testing a GWT/GXT application using selenium2library. Our application has embedded lists and if one of the elements is not visible, then Click Element returns the error:
ElementNotVisibleException: Message: u'Element is not currently visible and so may not be interacted with' ; Stacktrace:
This is only happening in FireFox. The same tests in Chrome work like a charm.
I dummied up a simple test case that demonstrates the error. This test uses the
sencha.com/examples site, from which we get the templates we use in our application.
*** Settings ***
Documentation This is a test suite.
Suite Teardown Close All Browsers
Test Timeout 1 minute
Library Selenium2Library 5s run_on_failure=Capture Page Screenshot
*** Test Cases ***
Test1
Maximize Browser Window
Comment Expand tree items.
Click Element xpath=//span[text()='Windows']/../img[2]
Click Element xpath=//span[text()='TreeGrid']/../img[2]
Click Element xpath=//span[text()='Tree']/../img[2]
Click Element xpath=//span[text()='ToolBar & Menu']/../img[2]
Click Element xpath=//span[text()='Templates & Lists']/../img[2]
Click Element xpath=//span[text()='Tabs']/../img[2]
Click Element xpath=//span[text()='Misc']/../img[2]
Wait Until Page Contains Element xpath=//span[text()="MessageBox"] 30s
Click Element //span[text()="MessageBox"]
Capture Page Screenshot
Sleep 5s
I'm pretty sure this is a problem with Selenium and the WebDriver. I tried using SeleniumIDE in FireFox to test this, and while I'm not getting the error, Selenium is not selecting the items.
Has anyone else had this problem? Any workarounds?
Thanks,
Rob