Plis I wish indications a site to train automated software testing

Viewed 38

describe 'Visit script' do

it 'visitar a pagina' do

puts "visitando a pagina"

visit "https://www.google.com/"

expect(page.title).to eql "Google"

end

1 Answers

Don't use the standard RSpec matchers with Capybara objects - the standard matchers don't have waiting/retrying behavior. Instead use the Capybara provided matchers

it 'visitar a pagina' do
  puts "visitando a pagina"
  visit "https://www.google.com/"
  expect(page).to have_title("Google")
end
Related