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 'irb/completion' | |
require 'irb/ext/save-history' | |
ARGV.concat [ "--readline", | |
"--prompt-mode", | |
"simple" ] | |
# 25 entries in the list | |
IRB.conf[:SAVE_HISTORY] = 50 |
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
/* | |
* Copyright 2012 calabash-driver 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 | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
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
#!/bin/bash | |
##### | |
# | |
# This script creates android emulators on the fly. | |
# | |
# Please refer to the README for usage instructions. | |
# | |
#### |
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 'irb/completion' | |
require 'irb/ext/save-history' | |
ARGV.concat [ "--readline", | |
"--prompt-mode", | |
"simple" ] | |
# 25 entries in the list | |
IRB.conf[:SAVE_HISTORY] = 50 |
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
#! /bin/bash | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2013 Diego Torres Milano. All rights reserved. | |
#===================================================================== | |
get_adb_devices() | |
{ | |
adb devices 2>&1 | tail -n +2 | sed '/^$/d' | |
} |
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 de.dary.android.picker; | |
import java.util.ArrayList; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.locks.Lock; | |
import java.util.concurrent.locks.ReentrantLock; | |
import org.testng.Assert; | |
import org.testng.annotations.AfterMethod; | |
import org.testng.annotations.BeforeMethod; |
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
CalabashDriver driver=new RemoteCalabashAndroidDriver(host, port, capabilities); | |
driver.findViewById("yourIdOfImage").longClick(); |
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
@Test | |
public void testShouldBeAbleToFindHiddenElementAndGetShownState() throws Exception { | |
Element textView = | |
findElementByXpath("//TextView[@name='id/visibleTextView']", driver.getPageSource()); | |
Assert.assertEquals(textView.getAttribute("shown"), "false"); | |
} |
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
{ | |
"desiredCapabilities":{ | |
"screenSize":"320x480", | |
"emulator":true, | |
"locale":"en_US", | |
"androidTarget":"ANDROID16", | |
"aut":"io.selendroid.testapp:0.4-SNAPSHOT" | |
} | |
} |
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
SelendroidCapabilities capa = | |
SelendroidCapabilities.emulator( | |
DeviceTargetPlatform.ANDROID16, | |
"io.selendroid.testapp:0.4.0"); | |
WebDriver driver = new SelendroidDriver("http://localhost:5555/wd/hub", capa); | |
WebElement inputField = driver.findElement(By.id("my_text_field")); | |
Assert.assertEquals("true", inputField.getAttribute("enabled")); | |
inputField.sendKeys("Selendroid"); | |
Assert.assertEquals("Selendroid", inputField.getText()); |
OlderNewer