Created
February 13, 2016 16:38
-
-
Save angelovstanton/217900c53fab9c0a6144 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
[TestMethod] | |
public void ExecuteJavaScript() | |
{ | |
this.driver.Navigate().GoToUrl(@"http://automatetheplanet.com"); | |
this.WaitUntilLoaded(); | |
IJavaScriptExecutor js = driver as IJavaScriptExecutor; | |
string title = (string)js.ExecuteScript("return document.title"); | |
Debug.WriteLine(title); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment