课程: End-to-End JavaScript Testing with Cypress.io

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Interacting with elements

Interacting with elements

- [Instructor] All right, so now that we've seen a lot of the basics of writing end-to-end tests with Cypress, over the next few videos we're going to take a more in-depth look at how to do a few different things, such as interacting with elements, making different assertions, debugging our Cypress tests, and so on. So in this video we're going to focus on several different ways that you can interact with elements in Cypress, and to start off with, so far the only real interaction that we've used in our tests, in other words the only real change that we've made to the interface as we've had Cypress interact with it on our behalf, is we've used this type command to change the value in a text input, but in reality there are many other commands that Cypress provides us with for testing applications. These commands are all pretty straightforward, so I'm not really going to spend too much time on any one of them, but feel free to play around with them until they become more familiar. So…

内容