测试 capybara have_css 不起作用

pengalg · December 04, 2014 · Last by shangrenzhidao replied at March 05, 2015 · 2045 hits

it 'go to home' do visit '/' expect( page).to have_css('.active a',:text=>'Home') end

错在哪里呢?

换 have_xpath 试试

You need to Sign in before reply, if you don't have an account, please Sign up first.