![]() If that tab isn't visible, click the More tabs ( ) button, or else the More Tools ( ) button. In DevTools, on the main toolbar or the Drawer toolbar at the bottom, select the Network Console tab. Or, press Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS). To open DevTools, right-click the webpage, and then select Inspect. For example, use the Network Console tool when you're developing and testing web APIs. Pm.Use the Network Console tool to send web API requests. Write the following code in your tests tab By this test we confirm that the cookie contains same value that we want to see. We can also check for a specific value in a cookie. The test result will pass signalling that the cookie with the name NID exists in the request. So please check it beforehand for other domains. This will not be the case with other servers. So we are just checking the same through tests. NOTE: We already know that has NID cookie saved. Pm.expect(pm.cookies.has('NID')).to.be.true ![]() In the test tab, write the following test Here we will check if are getting the cookie that we expect or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |