Skip to content

Instantly share code, notes, and snippets.

@dzharii
dzharii / Test.01.cs
Created March 31, 2012 19:02
Пример 01: Первоначальный тест кейс + все необходимые декларации страницы Google.
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using System.Collections.Generic;
using System;
using NUnit.Framework;
namespace Selenium.Two.DotNetExample
{
[TestFixture]
class TestGoogle_Initial
@dzharii
dzharii / 111.pl
Created August 22, 2012 20:22
Google docs tab separated lines parser
use strict; use warnings;
open FV, "content.txt";
my %categories;
while (my $line = <FV>) {
my ($title, $link, $tag, $content) = split /\t/,$line;
$tag =~ s/(^\[|\]$)//gi;
chomp $content;
@dzharii
dzharii / gist:3589986
Created September 1, 2012 22:41
AT-info фотка с описанием
<h2>Еще больше с Посиделок</h2>
<a href="https://picasaweb.google.com/109412184458698562185/AtInfoPosidelki18#">Фотографии Посиделок в фотоальбоме AT.INFO</a>
<br><br>
<div class="speaker" style="position:relative; display: inline-block; left:0px; top:0px; border: 1px solid orange">
<a href="https://picasaweb.google.com/109412184458698562185/AtInfoPosidelki18#"><img width="720" height="480" src="https://lh5.googleusercontent.com/-RJqKTB9S3bg/UCO8N4TKjKI/AAAAAAAACRk/tJbcOMclzy0/s720/%2520-98%2520%2528Medium%2529.jpg" border=0></a>
<div class="notebox" style="
position: absolute;
left: -30px;
bottom: -10px;
width:600px; height:100px;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestAOPDemo
{
class Program
{
public abstract class Animal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestAOPDemo
{
class Program
{
public abstract class Animal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestAOPDemo
{
class Program
{
public abstract class Animal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.DynamicProxy;
using Humanizer;
namespace TestAOPDemo
{
public class Program
Test Action Output
a 10
b 20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace InvokeDemoConsole
{
// =============================================================
@dzharii
dzharii / Html2CanvasWebDriver.cs
Created September 15, 2013 17:57
When WebDriver tests started via Windows Remote Desktop session, the page screenshots become corrupted in Internet Explorer and show just a black screen.
/***************************************************************************************************
* Alternative way to create full page screenshot via Selenium WebDriver with html2canvas.js
* =========================================================================================
*
* When WebDriver tests started via Windows Remote Desktop session,
* The page screenshots become corrupted in Internet Explorer and
* show just a black screen.
*
***************************************************************************************************/
using System;