I'm working to live life the BDD way. I'm using Cucumber (with Selenium) and happen to be using Twitter Bootstrap modals in my application.
While running Cucumber tests, I was getting a "Selenium::WebDriver::Error::MoveTargetOutOfBoundsError"
error. After much searching, debugging and general despair, I have concluded that it has to do with the use of the "fade"
parameter in my Bootstrap modals. If I use "fade"
, the error is thrown:
<div class="modal hide fade" id="info-share-edit-modal" style="display: none;">
.
.
.
</div>
If I remove "fade"
, then Selenium is full of happiness and my tests clear:
<div class="modal hide" id="info-share-edit-modal" style="display: none;">
.
.
.
</div>
So, I am now removing "fade"
from my various modals. But, this makes me sad because I like the fade effect.
Has anyone else experienced problems using Selenium with fade in Bootstrap modals? If so, is there some clever way of getting the two to work nicely together?
By the way (not sure if it matters), I'm Rails 3.2.3, Firefox 13.0.1, and Ubuntu 12.04LTS.