Sometime last month (June 2013), some of our Capybara tests started with an error, mainly because the buttons that they are trying to click do not appear. Ideally, I would like to find out what has changed. We are currently working on selenium-webdriver 2.33, but I tried to return to 2.29 and it still does not work. We only work against Firefox at the moment, and possibly due to a newer version of Firefox.
The ban is that I canβt figure out how to scroll buttons in a view. From what I'm compiling, I can use scrollIntoView, but not sure what to name it in the Capybara step. I tried the options:
Capybara.current_session.driver.execute_script("arguments[0].scrollIntoView(true;)", find_button(button).native)
But no luck, because find_button itself is not working.
Note: we select based on the text of the button. ID-based selection is possible, but will require many changes to our user interface tests, so we would like to avoid this.
selenium-webdriver capybara
Kyle baley
source share