This file contains hidden or 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
public ActionResult IndexCompleted(string data, string moredata) | |
{ | |
Operations translations = new Operations {FirstOperation = data, SecondOperation = moredata}; | |
return View(translations); | |
} |
This file contains hidden or 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
<input type="hidden" id="blogCount" name="blogCount" value="<%= TempData["TotalPageCount"] %>" /> | |
<script type="text/javascript"> | |
// Check if user can handle localStorage first. | |
if (typeof (localStorage) != 'undefined') { | |
GetCount(); | |
} | |
function GetCount() { | |
// Get the last value | |
var blogCount = localStorage.getItem('blogCount'); |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="icon" href="favicon.ico"> | |
<title>Tinycon</title> | |
<script src="../tinycon.js"></script> | |
<script> | |
(function(){ | |
var count = 0; | |
setInterval(function(){ |
This file contains hidden or 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
<configuration> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="WebDriver" publicKeyToken="1c2bd1631853048f" culture="neutral" /> | |
<bindingRedirect oldVersion="2.13.0.0" newVersion="2.16.0.0"/> | |
</dependentAssembly> | |
</assemblyBinding> | |
</runtime> | |
</configuration> |
This file contains hidden or 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
[Test] | |
public void SearchResults_ShouldHaveCorrectPageTitle() | |
{ | |
_driver = new SimpleBrowserDriver(); | |
// Navigate | |
_driver.Navigate().GoToUrl("http://www.deanhume.com"); | |
// Enter search value | |
IWebElement searchBox = _driver.FindElement(By.Name("searchValue")); |
This file contains hidden or 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
namespace SeleniumTest | |
{ | |
[TestFixture] | |
public class BlogTest | |
{ | |
} | |
} |
This file contains hidden or 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
namespace SeleniumTest | |
{ | |
[TestFixture(typeof(FirefoxDriver))] | |
[TestFixture(typeof(InternetExplorerDriver))] | |
public class BlogTest<TWebDriver> where TWebDriver : IWebDriver, new() | |
{ | |
private IWebDriver _driver; | |
[Test] | |
public void SearchResults_ShouldHaveCorrectPageTitle() |
This file contains hidden or 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
{ | |
"name": "Blog Feed Reader", | |
"version": "1.0", | |
"description": "This is a simple feed reader that will display the top 5 posts from deanhume.com", | |
"icons": { "128": "icon128.png" }, | |
"browser_action": { | |
"default_title": "Blog Feed Reader", | |
"default_icon": "icon128.png", | |
"default_popup": "feed.html" | |
}, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<h1>A simple blog feed reader</h1> | |
<!-- The script goes here --> | |
<script src="http://feeds.feedburner.com/DeanHumesBlog?format=sigpro" type="text/javascript" > | |
</script> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>A simple blog feed reader</title> | |
<style type="text/css"> | |
html | |
{ | |
width: 400px; | |
} | |
a:link, a:hover, a:active |