After updating to firefox 6 all of my cucumber tests stopped working. Basically none of the button and link clicks were working. After debugging for a while I figured out that for some reason "click_button" and "click_link" were silently failing. I then googled about the issue and found work around for it. Here it is:
- Instead of click_button(button_text), first find the button by invoking find_button(button_text)
- Then call button.native.send_keys([:return]), which will perform "Enter" key on the button.
- Same will work with link as well.
I faced the issue with following system configuration:
- Windows XP SP3
- ruby 1.8.7
- Firefox 6.0.1
- cucumber 1.0.2
- capybara 1.1.0
- selenium-webdriver 2.5.0
No comments:
Post a Comment