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

Setting up Selenium

From the course: DevOps Foundations: Your First Project

Start my 1-month free trial

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…

Contents