Skip to content

Instantly share code, notes, and snippets.

View michaelwowro's full-sized avatar
💭
hustling

michaelwowro

💭
hustling
View GitHub Profile
@michaelwowro
michaelwowro / GrouponTest.java
Created November 29, 2012 16:30
Use SauceLabs and TestNG to head for Groupon.
/**
* Use SauceLabs and TestNG to head for Groupon.
* You have to put in your username and accessKey.
*/
package de.itkosmopolit.testandforum;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.WebDriver;
@michaelwowro
michaelwowro / urlinfo.php
Created November 22, 2012 10:26
PHP-script to call the AlexaWebInformationService over the webserver
<?php
/**
* This script is just a template - you have to adapt it to your needs.
* WHY YOU MIGHT NEED IT
* That script (http://aws.amazon.com/code/AWIS/402) provided by Alexa is optimized for running on a console. This script here is optimized for running on a webserver.
* Also the Alexa-script isn't running on older PHP (because it uses based on newer version of SimpleXMLElement::__construct with more than three parameters). This script here is running with at least PHP 5.1.6 (24. August 2006).
*
* INSTRUCTIONS
* 1.) You have to get an account at Amazon Web Services (for that you need a valid credit card).
@michaelwowro
michaelwowro / AnchorTest.java
Created November 19, 2012 11:43
Test an anchor with WebDriver and JavaScript
package de.itkosmopolit.testandforum;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class AnchorTest {