Skip to content

Instantly share code, notes, and snippets.

View p0deje's full-sized avatar
👶
Slow to respond

Alex Rodionov p0deje

👶
Slow to respond
View GitHub Profile
@p0deje
p0deje / test.diff
Last active February 1, 2017 05:34
Attempt to reproduce SeleniumHQ/selenium#1856
commit ca156e9e45362ce78a56f79bdf01ee7913d82ba6
Author: Alex Rodionov <p0deje@gmail.com>
Date: Wed Mar 23 14:40:57 2016 +0600
Attempt to reproduce #1856
diff --git a/javascript/atoms/test/click_test.html b/javascript/atoms/test/click_test.html
index f570acb..1de449b 100644
--- a/javascript/atoms/test/click_test.html
+++ b/javascript/atoms/test/click_test.html
@p0deje
p0deje / chromedriver.log
Last active December 30, 2015 07:28
ChromeDriver hangs when form is submitted using jquery-iframe-transport https://bugs.chromium.org/p/chromedriver/issues/detail?id=1304
[0.257][INFO]: COMMAND InitSession {
"desiredCapabilities": {
"browserName": "chrome",
"chrome.detach": true,
"chromeOptions": {
"detach": true
},
"cssSelectorsEnabled": true,
"javascriptEnabled": true,
"nativeEvents": false,
@p0deje
p0deje / elementFromPoint.md
Last active November 19, 2015 05:34
Inconsistencies in elementFromPoint

elementFromPoint inconsistencies

Steps to reproduce:

  1. Open the HTML page.
  2. Execute snippet in console.

Browsers:

  1. Firefox 38.3.0.
@p0deje
p0deje / action_mailer_shared_deliveries.rb
Last active March 14, 2018 05:32
Shared ActionMailer deliveries in :test mode to allow testing emails with Capybara/Selenium
# Share mail deliveries between threads.
# Just add it to features/support/env.rb or spec/spec_helper.rb
class Mail::TestMailer
mattr_accessor :shared_deliveries
def self.deliveries
@@shared_deliveries || []
end
end
Mail::TestMailer.shared_deliveries = Mail::TestMailer.deliveries
@p0deje
p0deje / Vagrantfile
Last active August 29, 2015 13:57
Vagrantfile to develop and test Vagrant for Linux using DigitalOcean
# I'm running OS X and I need to develop and test Vagrant features
# which are specific to Linux-only, i.e. I need "physical" Linux machine.
# I've finally stuck with creating DigitalOcean VM and installing
# everything necessary for development there. It's magical
# Vagrant-powered Vagrant-development Vagrantfile.
#
# First, start the VM which will be the host:
# $ vagrant up host --provider=digital_ocean
#
# Now, you can start VM in VM which will be used for Vagrant testing:
@p0deje
p0deje / yardtest.html
Created February 7, 2014 12:59
Generated YARD doc using macros for watir/watir-webdriver#215
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documentation by YARD 0.8.7.3</title>
<style type="text/css">
body {
padding: 0 20px;
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
@p0deje
p0deje / selenium_cookie_expires.rb
Last active January 2, 2016 22:29
Selenium adding "expires" to cookie
@p0deje
p0deje / please.rb
Created October 15, 2013 16:55
please for ruby
class Object
def please
self
end
end
1.to_i.please
@p0deje
p0deje / xqib.html
Created June 26, 2013 14:55
Watir + Xqib experiments
<html>
<head>
<script src="/Users/p0deje/Downloads/xqib-js-0.8-beta/mxqueryjs/mxqueryjs.nocache.js" type="text/javascript"></script>
<script type="application/xquery" src="module.xquery"></script>
<script type="application/xquery" charset="utf-8">
module namespace m = "http://www.xqib.org/module";
declare function m:generateDiv($node as node()+) {
for $x in $node/text()
return
@p0deje
p0deje / watir-divs-bug.rb
Last active December 19, 2015 00:19
Weird Watir/Selenium bug when using #divs. Still need to figure out what's going on.
# encoding: utf-8
require 'watir-webdriver'
begin
browser = Watir::Browser.new
browser.goto "data:text/html,#{DATA.read}"
browser.divs(class: 'job_row').map do |div|
p Time.now
a = {