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
# java -cp ~/Downloads/Sikuli-X-1.0rc3\ \(r905\)-linux-x86_64/Sikuli-IDE/sikuli-script.jar org.python.util.jython test.py | |
from __future__ import with_statement | |
import unittest | |
from sikuli.Sikuli import * | |
class Firefox(object): | |
""" | |
very simple firefox browser context manager |
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 time | |
from glance_dom import GlanceDom | |
from selenium import webdriver | |
driver = webdriver.Chrome() | |
driver.get('https://github.com/robotframework/SeleniumLibrary') | |
glance = GlanceDom(driver) |
==================
- Obtain a windows vm from Modern IE.
- Win 8 OSX
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
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
# Starting with a generic "Open Browser to Page" keyword, following that are examples for: | |
# Google Chrome | |
# PhantomJS | |
# | |
# Assumed global or suite variables: | |
# ${browser} - the browser you want to use in testing | |
# ${delay} - the "speed" that Selenium verbs execute at | |
# ${user_agent} - User Agent string like: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 | |
# | |
# Note: The documentation is written with the libdoc utility in mind. See: |
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
*** Settings *** | |
Documentation Примеры тестов для тестирования REST API. | |
... | |
... == Зависимости == | |
... - [ https://github.com/dmizverev/robot-framework-library/blob/master/library/JsonValidator.py | JsonValidator ] | |
... - [ https://github.com/dmizverev/robot-framework-library/blob/master/library/OracleDB.py | OracleDb] | |
... - [ https://github.com/bulkan/robotframework-requests | RequestsLibrary] | |
... - [ http://robotframework.org/robotframework/latest/libraries/Collections.html | Collections] | |
Resource ..${/}resource${/}common.txt | |
Suite Setup Suite_Setup |
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
# Usage: vagrant up windowsVersion-IEversion | |
# | |
# Eg. vagrant up win10-edge | |
# | |
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a | |
boxes = { | |
# http://www.vagrantbox.es/ | |
"xp-6" => "http://aka.ms/ie6.xp.vagrant", | |
"xp-8" => "http://aka.ms/ie8.xp.vagrant", | |
"vista-7" => "http://aka.ms/ie7.vista.vagrant", |
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
public class GridInfoExtracter{ | |
private static String[] getHostNameAndPort(String hostName, int port, | |
SessionId session) { | |
String[] hostAndPort = new String[2]; | |
String errorMsg = "Failed to acquire remote webdriver node and port info. Root cause: "; | |
try { | |
HttpHost host = new HttpHost(hostName, port); | |
DefaultHttpClient client = new DefaultHttpClient(); |
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
# -*- coding: utf-8 -*- | |
import argparse | |
import random | |
import os | |
import cherrypy | |
from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool | |
from ws4py.websocket import WebSocket | |
from ws4py.messaging import TextMessage |
OlderNewer