I have a file field that has opacity: 0 and is overlaping a fake button. Its a common css technic to fake a sort of \"Upload button\" that displays consistently acr
opacity: 0
You can interact with hidden elements using the visible: false property in Capybara.
visible: false
If you want to click on hidden element use:
find("#photos", visible: false).click
Don't use click_button('#photo') directly
click_button('#photo')