Skip to content

Instantly share code, notes, and snippets.

/*
* Created by SharpDevelop.
* User: thu
* Date: 2014-10-31
* Time: 09:22
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using TestStack.White;
Test Name: Automate
Test FullName: TestStack.White.UITests.ControlTests.ListControls.CheckedListBoxTest.Automate
Test Source: c:\Home\projects\White_UIAComWrapper\src\TestStack.White.UITests\WhiteTestBase.cs : line 42
Test Outcome: Failed
Test Duration: 0:00:06,248
Result Message:
TestStack.White.UITests.TestFailedException : Failed to run CanCheckItem for WinForms. Details:
System.InvalidCastException: Unable to cast object of type 'TestStack.White.UIItems.CheckBox' to type 'TestStack.White.UIItems.ListBoxItems.ListItem'.
package selendroid_1;
import io.selendroid.MultiTouchAction;
import io.selendroid.SelendroidCapabilities;
import io.selendroid.SelendroidDriver;
import io.selendroid.TouchAction;
import io.selendroid.TouchActionBuilder;
import org.junit.Assert;
import org.openqa.selenium.By;
package selendroid_1;
import io.selendroid.MultiTouchAction;
import io.selendroid.SelendroidCapabilities;
import io.selendroid.SelendroidDriver;
import io.selendroid.TouchAction;
import io.selendroid.TouchActionBuilder;
import org.junit.Assert;
import org.openqa.selenium.By;
{
"url": "http://localhost:8080/wd/hub/session/fd16292c-becf-1a8e-370a-c0737d889f83/actions/",
"method": "POST",
"json": {
"payload": [
{
"id": "",
"inputDevice": "touch",
"actions": [
{
package selendroid_1;
import io.selendroid.MultiTouchAction;
import io.selendroid.SelendroidCapabilities;
import io.selendroid.SelendroidDriver;
import io.selendroid.TouchAction;
import io.selendroid.TouchActionBuilder;
import org.junit.Assert;
import org.openqa.selenium.By;
@thu2004
thu2004 / gist:130ac80c4fe29505b8d9
Created November 26, 2014 15:35
AndroidTouchScreen change for multiple tounch not working
/*
* Copyright 2011 Selenium committers
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
@thu2004
thu2004 / gist:108139e452daade230b7
Last active August 29, 2015 14:10
Automate Android app with Appium - Selendroid - Python
from selenium import webdriver
from selenium.webdriver.common.touch_actions import TouchActions
from time import sleep
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.1'
desired_caps['deviceName'] = 'Android'
Selendroid.prototype.pinchClose = function (startX, startY, endX, endY, duration,
percent, steps, elId, cb) {
var command;
var fromPointObject = {'x' : startX, 'y' : startY};
var toPointObject = {'x' : endX, 'y' : endY};
var moveX = (endX - startX)/4
var moveY = (endY - startY)/4
if (elId) {
@thu2004
thu2004 / gist:02e50abbe06bdb81c6f1
Last active December 31, 2015 21:19
Chinese Links
#EXTM3U
#EXTINF:0,HNWS-HD 湖南卫视高清
rtsp://58.200.131.2/JSWS-HD
#EXTINF:0,Hollywood movie channel,
rtsp://c.itvitv.com/hlw.ueidhefgecuyh
#EXTINF:0,Hong Kong etm
rtsp://c.itvitv.com/etm.jhfuowamedr
#EXTINF:0,Hong Kong hkm3
rtsp://c.itvitv.com/hkm3.husjadsuh
#EXTINF:0,Hong Kong HMC