Skip to content

Instantly share code, notes, and snippets.

View AutomatedTester's full-sized avatar
😃
Happy to help!

David Burns AutomatedTester

😃
Happy to help!
View GitHub Profile
{
"properties": {
"buildnumber": 452,
"product": "firefox",
"script_repo_revision": "production",
"branch": "try",
"repository": "",
"buildername": "Ubuntu VM 12.04 x64 try debug test marionette",
"buildid": "20130716064016",
"stage_platform": "linux64",
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
diff --git a/javascript/atoms/dom.js b/javascript/atoms/dom.js
index 4796dfe..523927c 100644
--- a/javascript/atoms/dom.js
+++ b/javascript/atoms/dom.js
@@ -618,6 +618,13 @@ bot.dom.isShown = function(elem, opt_ignoreOpacity) {
if (!bot.dom.isElement(elem)) {
throw new Error('Argument to isShown must be of type Element');
}
+ // Check the element is the top element
+ var doc = goog.dom.getOwnerDocument(elem);
# HG changeset patch
# User David Burns <dburns@mozilla.com>
# Date 1372933820 -3600
# Node ID ab71cb881ea96612ad510eb02a0f0ee42afcc747
# Parent e86ba1c0326c2f6bd1a329f0dfff66682eea3bcc
[mq]: bug837621
diff --git a/testing/marionette/atoms/atoms.js b/testing/marionette/atoms/atoms.js
--- a/testing/marionette/atoms/atoms.js
+++ b/testing/marionette/atoms/atoms.js
# HG changeset patch
# User David Burns <dburns@mozilla.com>
# Date 1373315218 -3600
# Node ID aaee2e4f1abc62939b8a294f18351062951df032
# Parent 1639af60732e914cdd593f92f7a6874c5bcfa25f
imported patch bug859264
diff --git a/testing/marionette/client/marionette/tests/unit/test_click_scrolling.py b/testing/marionette/client/marionette/tests/unit/test_click_scrolling.py
new file mode 100644
--- /dev/null
from marionette import Marionette
from marionette.keys import Keys
m=Marionette()
m.start_session()
m.set_context('chrome')
urlbar = m.find_element('id', 'urlbar')
urlbar.send_keys('https://www.google.co.uk')
from marionette import Marionette, Actions, MultiActions
import time
# Setup boilerplate:
m = Marionette()
m.start_session()
m.switch_to_frame(2)
# choose a photo
lis = m.find_elements("tag name", "li")
from marionette import Marionette, Actions, MultiActions
import time
#tested with 1.0.1 June 5
# setup boilerplate:
m = Marionette()
m.start_session()
m.switch_to_frame(2)
# Find the container element to dispatch scroll events to:
@AutomatedTester
AutomatedTester / ruby_marionnette_example.rb
Last active December 17, 2015 21:48
Marionette and Ruby example
require 'rubygems'
require 'selenium-webdriver'
caps = Selenium::WebDriver::Remote::Capabilities.firefox
caps['firefoxBinary'] = '/home/davidburns/mozilla-central/obj-ff-dbg/dist/bin/firefox'
# Have Selenium-Proxy running on :4444. Get that from https://github.com/AutomatedTester/Selenium-Proxy
driver = Selenium::WebDriver.for(:remote, :desired_capabilities => caps, :url => 'http://localhost:4444/')
driver.manage.timeouts.implicit_wait = 3
driver.get 'http://www.google.com'
#!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb
import utils
try:
con = MySQLdb.connect('localhost', 'mysqluser', 'password', 'tbpldatabase')
with con:
cur = con.cursor()
cur.execute("select runs_notes.*, runs.buildername, runs.result from runs_notes join runs on \