Back
I have the following spec:
it "deletes post", :js => true do ......page.status_code.should = '404'end
...
page.status_code.should = '404'
end
The page.status_code line is giving me this error:
Capybara::NotSupportedByDriverError
How do I check the page's status code?
As a remark. This line
Should be
page.status_code.should == 404
This worked for me with capybara-webkit.
If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium automation online training!
31k questions
32.8k answers
501 comments
693 users