pub struct WebDriver { /* fields omitted */ }
The WebDriver is the primary way by which interaction
is managed between the Selenium-Webdriver Server, and
our client.
Constructs a new Webdriver with the specific browser.
TODO: Make sure and add testing to verify that it supports
firefox properly
Actually starts and creates a session on the server,
collecting the session ID on success, and returning an error
on failure
Returns the current url of the browsing context. See examples for
more details on how this is used
Deletes the session, consuming itself in the process
TODO: Since we must manually add a new session, it would definitely stand to reason that we
should not consume the webdriver here, or, be tied specifically to a single session
Navigates the current browsing session to the reqwested url. This will
also wait until the browser has finished executing the request, meaning that
future calls may assume we've reached the appropriate url
Requests an elements from the webpage, given the specified selector and query string