Closed gardha closed 6 years ago
If the page has no content then there is nothing to click on, and I guess you're using first
rather than find
to locate the item you want to click on, which disables Capybaras waiting behaviors. Show the code for your test.
Your right, I am using first as opposed to find. I have now changed the code to use find to make the test more stable. What I don't understand is why the page would load without the content intermittently. Could it be related to #724
def log_out
begin
visit '/'
find('.dropdown-toggle').click
click_link 'Logout'
expect(page).to have_content 'You have been successfully logged out.'
rescue
puts 'Intermittent issue logging out.'
end
end
Sure it could be, or it could be throttling you have set up in your app, or it could be something else entirely. Try the fix mentioned at the end of #724 and see if it fixes it for you. Your test.log should also show whether your app was responding with a 304
message which would imply it is issue #724
Closing due to lack of response
Hello,
I have the following setup (latest versions for all): capybara (2.13.0) capybara-webkit (1.14.0) database_cleaner (1.5.3) Qt 5.5 MacOS Sierra
I am intermittently getting the following errors when attempting to log out my application
The page seems to have no content save_and_open_page output
Thanks, any help would be appreciated!