How to find invisible element using capybara

December 22, 2014

Reading time ~1 minute

Capybara don’t find invisible element.


In this case if #delete-button element has display: hidden or any other invisible style (e.g. visibility: none) ElementNotFound error is occurred.


You want to find it you should add visible option.

page.find("#delete-button", :visible => :all)

visible (Boolean, Symbol)

  • true - only finds visible elements.
  • false - finds invisible and visible elements.
  • :all - same as false; finds visible and invisible elements.
  • :hidden - only finds invisible elements.
  • :visible - same as true; only finds visible elements.

add ticket number to git commit automatically

Most of ticket tracker like Github, pivotal tracker have function to connect your commit to ticket(story).But every time when you commit ...… Continue reading

I will build frontend and backend separately

Published on September 28, 2016

order of angular controller's initialisation

Published on October 05, 2015