Oversikten viser antall forslag behandlet per dag gjennom stortingsperioden.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>Force-Directed Layout</title> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<style type="text/css"> | |
circle { | |
stroke-width: 1.5px; |
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 'net-http-spy' | |
require 'selenium-webdriver' | |
Net::HTTP.http_logger_options = {:verbose => true} | |
$DEBUG = true | |
driver = Selenium::WebDriver.for :remote, :url => "http://10.10.10.55:3001/wd/hub", :desired_capabilities => :ipad |
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 'watir-webdriver' | |
require 'selenium-webdriver' | |
def wait_for_new_handle(original_handles, driver) | |
handles = nil | |
wait = Selenium::WebDriver::Wait.new(:timeout => 10) | |
wait.until do | |
handles = driver.wd.window_handles | |
handles.size == original_handles.size + 1 |
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
fijabakk :: /tmp> ruby test.rb | |
user system total real | |
selenium-webdriver 2.670000 0.750000 16.950000 ( 27.015838) | |
watir-webdriver 1.990000 0.790000 17.540000 ( 27.292868) | |
capybara 1.890000 0.810000 17.310000 ( 27.553319) | |
fijabakk :: /tmp> |
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 'selenium-webdriver' | |
require "benchmark" | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.native_events = false | |
d = Selenium::WebDriver.for :firefox, :profile => profile | |
d.navigate.to "file:///#{Dir.pwd}/test.html" | |
e = d.find_element(:id => "q") |
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 'selenium-webdriver' | |
require 'pp' | |
dir = Dir.mktmpdir("modal-dialog") | |
htmls = DATA.read.scan(/--- (.+?) ---\n(.+?)(?=---|\z)/m) | |
htmls.each do |name, content| | |
File.open(File.join(dir, name), "w") { |io| io << content} | |
end |
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 "selenium-webdriver" | |
d = Selenium::WebDriver.for :ie | |
d.get("data:text/html;charset=utf-8,#{URI.encode DATA.read}") | |
d.find_element(:xpath => "//input[@value='Test Button']").click | |
d.find_element(:link_text, "Test Link").click | |
p d.find_element(:id => "log").text |
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 'watir-webdriver' | |
htmls = DATA.read.scan(/--- (.+?) ---\n(.+?)(?=---|\z)/m) | |
htmls.each do |file, content| | |
File.open(file, "w") { |f| f << content } | |
end | |
browser = Watir::Browser.new :firefox | |
begin |
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 org.openqa.selenium.By; | |
import org.openqa.selenium.NoSuchElementException; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
public class FFLinux { | |
public static void main(String[] args) { | |
WebDriver ff = new FirefoxDriver(); | |
ff.get("http://www.domain.com"); | |
ff.findElement(By.linkText("Login")).click(); |
NewerOlder