Recall & Review
beginner
What is network log capture in Selenium testing?
Network log capture is the process of recording all network requests and responses made by the browser during a test. It helps testers see what data is sent and received, like a phone call record for the browser.
Click to reveal answer
intermediate
Which Selenium feature allows capturing network logs in Python?
Using Selenium with Chrome DevTools Protocol (CDP) allows capturing network logs. You enable performance logging in Chrome options and then access logs via Selenium's driver.get_log('performance').
Click to reveal answer
beginner
Why is capturing network logs useful in testing?
It helps verify if the right API calls are made, check response data, find slow requests, and detect errors invisible on the page. Like checking the mailman’s delivery to ensure messages arrived correctly.
Click to reveal answer
intermediate
How do you enable performance logging in ChromeDriver for Selenium Python?
You create ChromeOptions, add the experimental option 'perfLoggingPrefs' with {'enableNetwork': True}, and set 'loggingPrefs' in capabilities to enable performance logging. Then pass these options and capabilities to ChromeDriver.
Click to reveal answer
beginner
What kind of information can you find in network logs captured during Selenium tests?
You can find request URLs, HTTP methods, status codes, headers, request and response bodies, and timing details. This helps understand what data the browser exchanged with servers.
Click to reveal answer
What is the main purpose of capturing network logs in Selenium tests?
✗ Incorrect
Network logs show all network activity, helping testers verify data exchange.
Which Selenium driver supports capturing network logs via Chrome DevTools Protocol?
✗ Incorrect
ChromeDriver supports CDP which allows network log capture.
How do you access network logs in Selenium Python after enabling performance logging?
✗ Incorrect
Performance logs include network events and are accessed with 'performance'.
Which of these is NOT typically found in network logs?
✗ Incorrect
Network logs do not include browser UI layout information.
Why might a tester want to check network logs during a test?
✗ Incorrect
Checking API calls and responses helps ensure correct backend communication.
Explain how to enable and capture network logs in Selenium using Python and ChromeDriver.
Think about Chrome DevTools Protocol and performance logs.
You got /4 concepts.
Describe why network log capture is important in software testing and what information it provides.
Consider how network logs help understand backend communication.
You got /4 concepts.