Skip to content

Instantly share code, notes, and snippets.

View gsccheng's full-sized avatar

Gabriel Cheng gsccheng

  • San Francisco Bay Area
View GitHub Profile
@gsccheng
gsccheng / gist:a5987dda6fc7d0a8a675d84fd6ad344a
Created October 3, 2017 16:48
Non-working case - Chromedriver
Usage: <main class> [options]
Options:
--version, -version
Displays the version and exits.
Default: false
-browserTimeout
<Integer> in seconds : number of seconds a browser session is allowed to
hang while a WebDriver command is running (example: driver.get(url)). If the
timeout is reached while a WebDriver command is still processing, the session
will quit. Minimum value is 60. An unspecified, zero, or negative value means
@gsccheng
gsccheng / gist:f641e0e38a81024a1d18ca5dde6a1c65
Created October 3, 2017 16:40
Working case - chromedriver
Usage: <main class> [options]
Options:
--version, -version
Displays the version and exits.
Default: false
-browserTimeout
<Integer> in seconds : number of seconds a browser session is allowed to
hang while a WebDriver command is running (example: driver.get(url)). If the
timeout is reached while a WebDriver command is still processing, the session
will quit. Minimum value is 60. An unspecified, zero, or negative value means
[17:26:21] COMMAND POST "/wd/hub/session/63d2436527913a449bd43179311190f9/element"
[17:26:21] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:26:23] COMMAND POST "/wd/hub/session/63d2436527913a449bd43179311190f9/elements"
[17:26:23] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:26:23] RESULT []
[17:26:24] COMMAND POST "/wd/hub/session/63d2436527913a449bd43179311190f9/elements"
[17:26:24] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:26:24] RESULT []
[17:26:24] COMMAND POST "/wd/hub/session/63d2436527913a449bd43179311190f9/elements"
[17:26:24] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:25:22] COMMAND POST "/wd/hub/session/fff46ea8c48a6e42048a40ae98cf1216/element"
[17:25:22] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:25:25] COMMAND POST "/wd/hub/session/fff46ea8c48a6e42048a40ae98cf1216/elements"
[17:25:25] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:25:25] RESULT []
[17:25:26] COMMAND POST "/wd/hub/session/fff46ea8c48a6e42048a40ae98cf1216/elements"
[17:25:26] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
[17:25:26] RESULT []
[17:25:26] COMMAND POST "/wd/hub/session/fff46ea8c48a6e42048a40ae98cf1216/elements"
[17:25:26] DATA {"using":"css selector","value":"div.chat-form-input-container > div[contenteditable=true]"}
redis [master] :> docker inspect 4b3ec3e53e32
[
{
"Id": "4b3ec3e53e322d0a13197525ec8d12098ab4cdf2d45c63cc8e60f904df7b6206",
"Created": "2017-03-05T02:14:17.916099148Z",
"Path": "/docker-entrypoint.sh",
"Args": [
"redis-cluster"
],
"State": {
Creating network "ctn_default" with the default driver
Creating ctn_redis_1
Creating ctn_web_1
Attaching to ctn_redis_1, ctn_web_1
web_1 | npm info it worked if it ends with ok
web_1 | npm info using npm@2.15.8
web_1 | npm info using node@v4.4.7
web_1 | npm info preprod react-redux-universal-hot-example@0.9.0
web_1 | npm info prod react-redux-universal-hot-example@0.9.0
web_1 |
motorbike = {
max_speed: 100,
color: :red,
number_of_wheels: 2,
current_speed: 0,
current_heading: 0,
engine_running: false,
odometer: 0
}