Skip to content

Instantly share code, notes, and snippets.

View iwx1's full-sized avatar

Rahul RAUT iwx1

View GitHub Profile
#!/bin/sh
service rsyslog stop
sed -i -e 's/^\$ModLoad imklog/#\$ModLoad imklog/g' /etc/rsyslog.conf
service rsyslog start
@iwx1
iwx1 / DocumentExtensions.cs
Created April 22, 2014 15:33
WatiN Extensions for h1 h2 h3 th
namespace WatiN.Core
{
using WatiN.Core.Constraints;
using WatiN.Core.Native;
public static class DocumentExtensions
{
public static H1 H1<TDoc>(this TDoc doc, string text)
where TDoc : Document
{
ElementFactory.RegisterElementType(typeof(H1));
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing IE Compatibility Mode</title>
<script src="ieUserAgent.js" type="text/javascript"></script>
</head>
<body>
<div id="results">Results:</div>
<script type="text/javascript">
var val = "IE" + ieUserAgent.version;