I have the following spec:
it "deletes post", :js => true do ......page.status_code.should = '404'end
page.status_code.should = '404'
The page.status_code line is giving me this error:
How do I check the page's status code?
As a remark. This line
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!