View colirio.rb
This file contains 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
#Para instalar as bibliotecas no Ubuntu, caso alguma falte: | |
# sudo apt-get install ruby1.8-dev | |
# sudo apt-get install libopenssl-ruby | |
# sudo apt-get install libxml2-dev | |
# sudo apt-get install libxslt-dev | |
# sudo gem install mechanize | |
require "rubygems" | |
require "mechanize" |
View seleniumTableExample.java
This file contains 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
//this demo uses http://www.cheltladiescollege.org/college/exams.asp | |
//to try to help @dckismet extracting cell text | |
package demo; | |
import org.testng.annotations.Test; | |
import common.BaseTest; | |
public class tables extends BaseTest { |
View Wordpress.java
This file contains 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
import com.thoughtworks.selenium.*; | |
import java.util.regex.Pattern; | |
public class Wordpress extends SeleneseTestCase { | |
public void setUp() throws Exception { | |
setUp("http://demo.opensourcecms.com/", "*chrome"); | |
} | |
public void testJunit() throws Exception { | |
selenium.open("/wordpress/wp-login.php"); | |
selenium.type("user_login", "admin"); |
View IntegrationInterceptor.java
This file contains 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
package common; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
import javax.xml.parsers.ParserConfigurationException; |
View following.rb
This file contains 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
require 'rubygems' | |
require 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = "" | |
config.consumer_secret = "" | |
config.oauth_token = "" | |
config.oauth_token_secret = "" | |
end |
View fileloop.sh
This file contains 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
for i in *ext ; do command "$i" ; done |
View focus_test.py
This file contains 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
from selenium import webdriver | |
driver = webdriver.Chrome() | |
driver.get("http://dev.knorrium.info/wd/focus_test.html") | |
driver.find_element_by_id("btnFocus").click() | |
element = driver.find_element_by_id("myAnchor") | |
focused_element = driver.switch_to_active_element() |
View .gitignore
This file contains 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
config.json | |
reading-image.png |
View bootstrap.sh
This file contains 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
#symlink gcc to a non-llvm version installed xCode's CLI tools | |
if [ -f /usr/bin/gcc-4.2 ]; then | |
sudo rm /usr/bin/gcc | |
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc | |
sudo rm /usr/bin/cc | |
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/cc | |
fi |
View polldaddy_v2.rb
This file contains 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
# Using the web automation driver (watir-webdriver) through the tor network | |
# Automates webpage actions & bypasses the voting limit on polldaddy | |
# Casts a vote every 3 seconds for a total of 1000 votes | |
require 'watir-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
b = Watir::Browser.new :firefox, :profile => profile | |
#b = Watir::Browser.new :firefox | |
b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |
OlderNewer