BD interview question

How does webdriver work