Created
February 5, 2017 13:05
-
-
Save angelovstanton/46c79d3c0edd7d65bb81eceeadd99b81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Navigate to a page | |
this.driver.Navigate().GoToUrl(@"http://google.com"); | |
// Get the title of the page | |
string title = this.driver.Title; | |
// Get the current URL | |
string url = this.driver.Url; | |
// Get the current page HTML source | |
string html = this.driver.PageSource; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment