شیء ساختگی(Mock Object)
The mock object is an object that represents a network mock and contains information about requests that were matching given url
and filterOptions
. It can be received using the mock
command.
اطلاعات
Note that using the mock
command requires support for Chrome DevTools protocol. That support is given if you run tests locally in Chromium based browser or if you use a Selenium Grid v4 or higher. This command can not be used when running automated tests in the cloud. Find out more in the Automation Protocols section.
You can read more about mocking requests and responses in WebdriverIO in our Mocks and Spies guide.