Skip to content

Instantly share code, notes, and snippets.

View moneytracker.html
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- meta name="viewport" content="width=device-width,initial-scale=1" -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="author" content="name">
<meta name="description" content="description here">
View -
if [[ "foo.xml" =~ ^.+\.(xml)$ ]]; then echo "X"; else echo "Y"; fi
@davidlinse
davidlinse / diffy-stacktrace.log
Created Jan 27, 2016
Stacktrace of Diffy w/ NumberFormatException when specifying a context after port
View diffy-stacktrace.log
THREAD1: candidate: name resolution failed
java.lang.NumberFormatException: For input string: "8080/CustomContext"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:272)
at scala.collection.immutable.StringOps.toInt(StringOps.scala:30)
at com.twitter.finagle.util.InetSocketAddressUtil$$anonfun$parseHostPorts$3.apply(InetSocketAddressUtil.scala:44)
at com.twitter.finagle.util.InetSocketAddressUtil$$anonfun$parseHostPorts$3.apply(InetSocketAddressUtil.scala:40)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
@davidlinse
davidlinse / selenium-xpath-variables.log
Created Jul 3, 2014
Selenium log output when running with xpath variables
View selenium-xpath-variables.log
13:30:14.279 INFO - Executing: [new session: Capabilities [{name=xpath, platform=ANY, version=, browserName=firefox, javascriptEnabled=true}]] at URL: /session)
13:30:14.280 INFO - Creating a new session for Capabilities [{name=xpath, platform=ANY, version=, browserName=firefox, javascriptEnabled=true}]
13:30:15.778 INFO - Done: /session
13:30:15.786 INFO - Executing: [implicitly wait: 30000] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/timeouts/implicit_wait)
13:30:15.791 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/timeouts/implicit_wait
13:30:15.797 INFO - Executing: [get: http://sebuilder.github.io/se-builder/] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/url)
13:30:18.041 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/url
13:30:18.046 INFO - Executing: [find element: By.xpath: //h1[@class='selenium-builder-logo']] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/element)
13:30:18.085 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/element
13:30:
@davidlinse
davidlinse / run-all-exporters.sh
Last active Aug 29, 2015
error messages from se-builder exporters when exporting full_example.json
View run-all-exporters.sh
#!/bin/bash
# attempts to export the 'examples/full_example.json'
# with all available selenium2 exporters.
#
# must be run from root of se-builder project
#
# $ sh run-all-exporters.sh
#
# author: david linse
@davidlinse
davidlinse / nightwatch-set-cookie-before-open-urls.log
Last active Aug 29, 2015
console log of nightwatch when attempt to set cookie before open an url
View nightwatch-set-cookie-before-open-urls.log
@davidlinse
davidlinse / nightwatch-delete-request-error.log
Last active Aug 29, 2015
nightwatch.js log output when attempt to close a (chromedriver|firefox selenium grid) session with attribute #data set to empty string
View nightwatch-delete-request-error.log
INFO Request: DELETE /wd/hub/session/fa148a22-198f-4216-b91b-7b02c645a03c
- data:
- headers: {}
There was an error while executing the Selenium command
cannot forward the request null
ERROR Response 500 DELETE /wd/hub/session/fa148a22-198f-4216-b91b-7b02c645a03c{ status: 13,
sessionId: 'fa148a22-198f-4216-b91b-7b02c645a03c',
value:
{ class: 'org.openqa.grid.common.exception.GridException',
stackTrace:
You can’t perform that action at this time.