Skip to content

Instantly share code, notes, and snippets.

View DominikDary's full-sized avatar

Dominik Dary DominikDary

View GitHub Profile
from selenium import webdriver;
from selenium.webdriver.common.action_chains import ActionChains;
driver=webdriver.Remote(desired_capabilities={'aut': 'io.selendroid.testapp:0.8.0-SNAPSHOT','emulator':True}) ;
chain = ActionChains(driver);
""" Send search key, enter the text "Selendroid" and press the "Enter key" """
chain.send_keys(u'\ue103'+'Selendroid'+u'\ue007').perform();
'''
@author: Dominik Dary
'''
import unittest
from selenium import webdriver
class FindElementTest(unittest.TestCase):
def setUp(self):
{
"desiredCapabilities":{
"screenSize":"320x480",
"emulator":true,
"locale":"en_US",
"androidTarget":"ANDROID16",
"aut":"io.selendroid.testapp:0.4-SNAPSHOT"
}
}
@lukeis
lukeis / bookmarklet.md
Last active August 29, 2015 14:17
Selenium-Close-Non-Issue

javascript:(function(){$('#new_comment_field')[0].value='This is a question rather than an issue. Please send questions to the selenium user group\n\nFor issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.\n\nSee CONTRIBUTING.md';$('button[name="comment_and_close"]').click()})()

@DominikDary
DominikDary / selendroid-repl.adoc
Last active August 29, 2015 13:56
Short article on using python to build a repl for selendroid.

selendroid repl

This document describes how to setup a repl for selendroid based on Python. It uses the Selenium Python bindings.

Overview

  • Installion and Configuration

  • Use the repl with selendroid