Skip to content

Instantly share code, notes, and snippets.

View ksummerlin's full-sized avatar

Kelly Summerlin ksummerlin

View GitHub Profile
@ksummerlin
ksummerlin / DefaultPageObject.cs
Created May 4, 2012 03:00
Example - Simple LoadableComponent in .NET
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
public class DefaultPageObject : LoadableComponent<DefaultPageObject>
{
readonly IWebDriver driver;
@ksummerlin
ksummerlin / SlowLoadableComponent.cs
Created May 4, 2012 02:43
SlowLoadableComponent implementation
// <copyright file="SlowLoadableComponent.cs" company="WebDriver Committers">
// Copyright 2007-2011 WebDriver committers
// Copyright 2007-2011 Google Inc.
// Portions copyright 2011 Software Freedom Conservancy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@ksummerlin
ksummerlin / gist:963841
Created May 10, 2011 03:07
Here is a LinqPad example of KeyPressed e.Handled
//You'll have to run this example in LinqPad as a C# program.
//Or put a class around the two global methods and change .Dump() calls to Console.WriteLine
void Main()
{
var frm = new Form1();
frm.Controls[0].KeyPress += keypressed_inMain;
frm.ShowDialog();
}