Skip to content

Instantly share code, notes, and snippets.

Created May 21, 2013 18:45
Show Gist options
  • Select an option

  • Save anonymous/5622222 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5622222 to your computer and use it in GitHub Desktop.
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="176,57,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
</Grid>
</Window>
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
IWebDriver driver = new FirefoxDriver();
driver.Url = "http://www.google.com/";
System.Threading.Thread.Sleep(2000);
driver.Quit();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment