Selenium is a popular tool for automating web browsers. This is very useful for writing and running tests against things that are rendered within a browser. In this video, learn how to configure RSpec and Capybara to use Selenium.
- [Instructor] All right, so let's go ahead … and run this test. … I'm going to save this and quit my editor … and now I'm going to try and run it … by typing docker-compose run … and then remove the container when I'm done, unit tests. … So we get an error … and it's saying that there's a undefined method … which is Ruby's kind way … of saying I don't know what to do with this. … And the reason why is because we haven't linked up Capybara … to Selenium yet. … So let's go ahead and do that now. … So the first thing that we need to do … is even though we're requiring the DSL … through this second line here, … it's not very discoverable here … but the reason why this is happening … is because we need to actually include the DSL … inside of our test … because there's a bunch of methods … within this Capybara DSL class … that we need to expose into our test such as visit. … That's the first thing we need to do. … We need to include those methods in here. … Then the second thing that we need to …
- Writing your first Dockerfile
- Using Docker Compose
- Testing your app with RSpec, Capybara, and Selenium
- Writing Terraform code
- Deploying a website into AWS S3
- Writing and running integration tests
- Writing a CI/CD pipeline with Jenkins
Skill Level Beginner
1. The Project/The Mission
Your application, pre-DevOps2m 59s
2. Testing Locally with Docker
3. Testing Your App with RSpec, Capybara, and Selenium
4. Infrastructure as Code with Terraform
5. CI/CD as Code with Jenkins
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.