From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up Selenium
From the course: DevOps Foundations: Your First Project
Setting up 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Setting up your test5m 31s
-
(Locked)
Setting up your Docker Compose service3m 4s
-
(Locked)
Creating the Dockerfile6m 58s
-
(Locked)
Running the test2m 3s
-
(Locked)
Identifying and testing an element4m 14s
-
(Locked)
Setting up Selenium8m 33s
-
(Locked)
Adding Selenium service to Docker Compose2m 23s
-
(Locked)
Running your test with Selenium3m 2s
-
(Locked)
-
-
-