Skip to content

Instantly share code, notes, and snippets.

[shs@Lugo selenium-ide (master)$ selenium-side-runner ~/Downloads/Example\ Suite.side
info: Running /Users/shs/Downloads/Example Suite.side
FAIL ./Default Suite.test.js
● Test suite failed to run
Cannot find module 'selenium-webdriver' from 'Default Suite.test.js'
1 | // This file was generated using Selenium IDE
2 | const tests = require("./commons.js");
> 3 | global.Key = require('selenium-webdriver').Key;
package org.openqa.selenium.remote.tracing;
import static java.time.ZoneOffset.UTC;
import static java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME;
import static java.util.logging.Level.INFO;
import static java.util.logging.Level.WARNING;
import com.google.common.annotations.VisibleForTesting;
import org.openqa.selenium.json.Json;
@shs96c
shs96c / gist:5dfb60b08dc0116d239942ca11240ba8
Last active October 30, 2018 14:08
Direct dependencies within Selenium
Selenium java_library dependencies:
1 -> //java/client/src/com/thoughtworks/selenium:api
1 -> //java/client/src/org/openqa/selenium/remote:http-session-id
1 -> //java/client/test/org/openqa/selenium/testing/drivers:browser
1 -> //java/server/src/org/openqa/selenium/concurrent:concurrent
1 -> //java/server/src/org/openqa/selenium/grid/component:component
1 -> //java/server/src/org/openqa/selenium/remote/server/jmx:jmx
2 -> //java/client/src/org/openqa/selenium/chrome:chrome-lib-build-info
2 -> //java/client/src/org/openqa/selenium/edge:edge-lib-build-info
FROM openjdk:8u181-slim as BASE
# There's no watchman package. Make it by hand.
RUN apt-get update && \
apt-get install -y \
autoconf \
automake \
build-essential \
git \
libssl-dev \
git clone --depth=5 https://github.com/shs96c/selenium.git
git remote set-branches origin 'docker'
git fetch --depth 1 origin docker
git checkout docker
bazel build //java/client/src/org/openqa/selenium/...
0:01.42 cargo:warning=<built-in>:1:10: fatal error: '/Users/shs/src/mozilla-central/obj-x86_64-apple-darwin17.7.0/mozilla-config.h' file not found
0:01.42 cargo:warning=#include "/Users/shs/src/mozilla-central/obj-x86_64-apple-darwin17.7.0/mozilla-config.h"
0:01.42 cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0:01.42 cargo:warning=1 error generated.
0:01.42 exit code: 1
0:01.42 --- stderr
0:01.42 thread 'main' panicked at '
0:01.42 Internal error occurred: Command "/usr/bin/clang" "-std=gnu99" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-fvisibility=hidden" "-fvisibility-inlines-hidden" "-DNDEBUG=1" "-DTRIMMED=1" "-I/Users/shs/src/mozilla-central/testing/geckodriver" "-I/Users/shs/src/mozilla-central/obj-x86_64-apple-darwin17.7.0/testing/geckodriver" "-I/Users/shs/src/mozilla-central/obj-x86_64-apple-darwin17.7.0/dist/include" "-I/Users/shs/src/mozilla-central/obj-x86_64-apple-darwin17.7.0/dist/include/nspr" "-I/Users/shs/src/mozilla
[shs@Lugo selenium-ide (master)$ yarn build:ext
yarn run v1.7.0
warning ../../../package.json: No license field
$ cd packages/selenium-ide && yarn build-dev
warning ../../../../../package.json: No license field
$ webpack
Hash: c0d018194ea05784a909
Version: webpack 3.12.0
Time: 21487ms
Asset Size Chunks Chunk Names
diff --git a/java/server/src/org/openqa/selenium/grid/config/ConcatenatingConfig.java b/java/server/src/org/openqa/selenium/grid/config/ConcatenatingConfig.java
index 3aa62df8e7..970c13abef 100644
--- a/java/server/src/org/openqa/selenium/grid/config/ConcatenatingConfig.java
+++ b/java/server/src/org/openqa/selenium/grid/config/ConcatenatingConfig.java
@@ -27,8 +27,10 @@
public class ConcatenatingConfig implements Config {
private final Map<String, Object> values;
+ private final String prefix;
java/server/src/org/openqa/selenium/grid/server/AbstractServer.java
java/server/src/org/openqa/selenium/grid/server/CommandHandlerServlet.java
java/server/src/org/openqa/selenium/grid/server/ServletRequestWrappingHttpRequest.java
java/server/src/org/openqa/selenium/grid/server/ServletResponseWrappingHttpResponse.java
java/server/src/org/openqa/selenium/grid/session/ActiveSession.java
java/server/src/org/openqa/selenium/grid/session/ActiveSessionListener.java
java/server/src/org/openqa/selenium/grid/session/ActiveSessions.java
java/server/src/org/openqa/selenium/grid/session/SessionFactory.java
java/server/src/org/openqa/selenium/grid/web/CommandHandler.java
java/server/src/org/openqa/selenium/grid/web/SeleniumHandlers.java
2018-07-09 09:48:33,463 [INFO][buck_tool.py:457] Starting new Buck daemon...
2018-07-09 09:48:44,837 [WARNING][buck_tool.py:475] Not using buckd because daemon failed to start.
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.Error: java.lang.ClassNotFoundException: com.facebook.buck.cli.bootstrapper.filesystem.BuckFileSystemProvider
at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:141)
at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.access$100(FileSystems.java:102)
at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:111)
at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:109)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:109)