Skip to content

Instantly share code, notes, and snippets.

@esumerfd
esumerfd / gist:1b719fde83949c2c62a44a36b30b88fc
Last active March 4, 2020 19:54
Selenium Grid or geckodriver problem?

The geckodriver, when running as a Selenium Grid node fails to find any tags. When run with Selenium Standalone or the driver on its own it works fine.

✖ Timed out while waiting for element <body> to be present for 30000 milliseconds. - expected "visible" but got: "not found" (30014ms)
    at Object.<anonymous> (.../nightwatch/BaseCommand.js:69:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Selenium Standalone - geckodriver

Keybase proof

I hereby claim:

  • I am esumerfd on github.
  • I am esumerfd (https://keybase.io/esumerfd) on keybase.
  • I have a public key whose fingerprint is D248 C189 5B35 0C65 2386 3441 02FF 1A01 3F69 2910

To claim this, I am signing this object:

@esumerfd
esumerfd / gist:b67663e7de9d42c7b4b5
Created January 18, 2015 17:35
OneName Verification
Verifying that +esumerfd is my openname (Bitcoin username). https://onename.com/esumerfd
#
# After a discussion about the cool groovy syntax for
# declaring anonymous classes. Jim Weirich and I came up
# with the following solutions in Ruby.
#
# Requires: Ruby 1.9
#
def run(x)
x.foo
end
#
# Enable ruby call tracing and filter to calls that are in your project or file or class name or an event, etc
#
# Copy this into your .irbrc for use when you need it.
#
# trace_on("my_project")
#
def trace_on(filter = nil)
set_trace_func proc { |event, file, line, id, binding, classname|
line = sprintf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
@esumerfd
esumerfd / quiz.rb
Created May 20, 2009 00:27 — forked from ryanb/quiz.rb
# COMMUNITY CHALLENGE
#
# How would you test this Quiz#problem method? Only two rules:
#
# 1. The tests should fail if any part of the application breaks.
# For example: If "gets" is moved before "puts" then the tests should
# fail since that breaks the application.
#
# 2. You cannot change the Quiz class. But you can use whatever framework
# and tools you want for the tests. (RSpec, Cucumber, etc.)