Skip to content

Instantly share code, notes, and snippets.

@bizmate
Forked from nickrealdini/BehatAttachFile.md
Last active September 9, 2016 10:50
Show Gist options
  • Save bizmate/7559b5b91b615f65f95d77c4f876b007 to your computer and use it in GitHub Desktop.
Save bizmate/7559b5b91b615f65f95d77c4f876b007 to your computer and use it in GitHub Desktop.
Selenium attachFile yields empty file handle?
default:
extensions:
SensioLabs\Behat\PageObjectExtension: ~
Laracasts\Behat:
env_path: .env.behat
Behat\MinkExtension:
default_session: laravel
sessions:
default:
laravel: ~
base_url: 'http://localhost'
laravel: ~
files_path: /src/features/assets
emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
name: html
renderer: Twig,Behat2
file_name: index
print_args: true
print_outp: true
loop_break: true
formatters:
pretty:
verbose: true
paths: false
snippets: true
smoke:
extensions:
Behat\MinkExtension:
base_url: http://localhost
browser_name: "chrome"
goutte: ~
default_session: selenium2
javascript_session: selenium2
selenium2:
browser: 'chrome'
wd_host: "http://192.168.98.180:4444/wd/hub" # fixed IP for standalone selenium
capabilities: { "browser": "chrome"}
suites:
smoke:
contexts:
- FeatureContext
- UploaderContext
filters:
tags: "@smoke"

When I attach a file manually my file has a size value, but if I run the behat test the file size is zero.

Manual Upload:

FileList {0: File, length: 1}
	0: File
		lastModified: 1472812418000
		lastModifiedDate: Fri Sep 02 2016 11:33:38 GMT+0100 (BST)
		name: "wrongCoverArt.jpg"
		size: 2903
		type: "image/jpeg"
		webkitRelativePath:""
	__proto__: File
	length: 1
	__proto__: FileList

Automatic Upload:

FileList {0: File, length: 1}
	0: File
		lastModified: 1472812418000
		lastModifiedDate: Fri Sep 02 2016 11:35:21 GMT+0100 (BST)
		name: "wrongCoverArt.jpg"
		size: 0
		type: "image/jpeg"
		webkitRelativePath:""
	__proto__: File
	length: 1
	__proto__: FileList
Open session
POST /wd/hub/session HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 158
{"desiredCapabilities":{"tags":["ff8c4e25538b","PHP 7.0.6"],"browser":"chrome","ignoreZoomSetting":false,"name":"Behat feature suite","browserName":"chrome"}}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:40 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 909
Content-Type: application/json; charset=utf-8
{"state":null,"sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":320941270,"value":{"applicationCacheEnabled":false,"rotatable":false,"mobileEmulationEnabled":false,"networkConnectionEnabled":false,"chrome":{"chromedriverVersion":"2.23.409710 (0c4084804897ac45b5ff65a690ec6583b97225c0)","userDataDir":"/var/folders/cm/kdsckr551h1gpw3jtp263kv5kk9q5k/T/.org.chromium.Chromium.LdlX0j"},"takesHeapSnapshot":true,"pageLoadStrategy":"normal","databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"version":"53.0.2785.101","platform":"MAC","browserConnectionEnabled":false,"nativeEvents":true,"acceptSslCerts":true,"webdriver.remote.sessionid":"cfb8198f-be50-4880-adb6-0d553e3268a1","locationContextEnabled":true,"webStorageEnabled":true,"browserName":"chrome","takesScreenshot":true,"javascriptEnabled":true,"cssSelectorsEnabled":true},"class":"org.openqa.selenium.remote.Response","status":0}
Visit url
POST /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/url HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 53
{"url":"http:\/\/the-internet.herokuapp.com\/upload"}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:41 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 158
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":498389816,"value":null,"class":"org.openqa.selenium.remote.Response","status":0}
Fine element File-Upload
POST /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/elements HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 80
{"using":"xpath","value":"\/\/html\/descendant-or-self::*[@id = 'file-upload']"}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:43 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 171
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":542626389,"value":[{"ELEMENT":"0"}],"class":"org.openqa.selenium.remote.Response","status":0}
Gets attribute????
POST /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 85
{"using":"xpath","value":"(\/\/html\/descendant-or-self::*[@id = 'file-upload'])[1]"}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:44 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 169
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":507854390,"value":{"ELEMENT":"0"},"class":"org.openqa.selenium.remote.Response","status":0}
Makes sure elements is displayed
GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/displayed HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:43 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 157
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":10387722,"value":true,"class":"org.openqa.selenium.remote.Response","status":0}GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/displayed HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Get element again??
POST /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 85
{"using":"xpath","value":"(\/\/html\/descendant-or-self::*[@id = 'file-upload'])[1]"}HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:44 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 169
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":507854390,"value":{"ELEMENT":"0"},"class":"org.openqa.selenium.remote.Response","status":0}
Get Element name
GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/name HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:44 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 161
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":346236473,"value":"input","class":"org.openqa.selenium.remote.Response","status":0}GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/name HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Get element attribute type
GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/attribute/type HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:44 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 161
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":1788303045,"value":"file","class":"org.openqa.selenium.remote.Response","status":0}GET /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/attribute/type HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
File Element set Value - ( Send Keys )
POST /wd/hub/session/cfb8198f-be50-4880-adb6-0d553e3268a1/element/0/value HTTP/1.1
Host: 192.168.98.140:4444
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8
Content-Length: 55
{"value":["\/v3\/features\/assets\/wrongCoverArt.jpg"]}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2016 10:26:44 GMT
Server: Jetty/5.1.x (Mac OS X/10.11.6 x86_64 java/1.8.0_101
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 158
Content-Type: application/json; charset=utf-8
{"state":"success","sessionId":"cfb8198f-be50-4880-adb6-0d553e3268a1","hCode":519380044,"value":null,"class":"org.openqa.selenium.remote.Response","status":0}
17:55:45.311 INFO [1] org.openqa.grid.selenium.GridLauncher - Launching a standalone Selenium Server
17:55:45.345 INFO [1] org.openqa.selenium.server.SeleniumServer - Writing debug logs to selenium.log
17:55:45.345 INFO [1] org.openqa.selenium.server.SeleniumServer - Java: Oracle Corporation 25.101-b13
17:55:45.346 INFO [1] org.openqa.selenium.server.SeleniumServer - OS: Mac OS X 10.11.6 x86_64
17:55:45.362 INFO [1] org.openqa.selenium.server.SeleniumServer - v2.53.1, with Core v2.53.1. Built from revision a36b8b1
17:55:45.363 INFO [1] org.openqa.selenium.server.SeleniumServer - Selenium server running in debug mode.
17:55:45.425 INFO [1] org.openqa.selenium.remote.server.DefaultDriverSessions - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
17:55:45.426 INFO [1] org.openqa.selenium.remote.server.DefaultDriverSessions - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
17:55:45.426 INFO [1] org.openqa.selenium.remote.server.DefaultDriverProvider - Driver class not found: com.opera.core.systems.OperaDriver
17:55:45.427 INFO [1] org.openqa.selenium.remote.server.DefaultDriverFactory - Driver provider com.opera.core.systems.OperaDriver is not registered
17:55:45.429 INFO [1] org.openqa.selenium.remote.server.DefaultDriverProvider - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
17:55:45.429 INFO [1] org.openqa.selenium.remote.server.DefaultDriverFactory - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
17:55:45.483 INFO [1] org.openqa.selenium.server.SeleniumServer - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
17:55:45.483 INFO [1] org.openqa.grid.selenium.GridLauncher - Selenium Server is up and running
17:57:06.093 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session
17:57:06.119 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [new session: Capabilities [{browser=chrome, name=Behat feature suite, browserName=chrome, ignoreZoomSetting=false, tags=[ff8c4e25538b, PHP 7.0.6]}]])
17:57:06.129 INFO [21] org.openqa.selenium.remote.server.DefaultDriverProvider - Creating a new session for Capabilities [{browser=chrome, name=Behat feature suite, browserName=chrome, ignoreZoomSetting=false, tags=[ff8c4e25538b, PHP 7.0.6]}]
17:57:06.415 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: newSession [null, newSession {desiredCapabilities=Capabilities [{browser=chrome, name=Behat feature suite, browserName=chrome, ignoreZoomSetting=false, tags=[ff8c4e25538b, PHP 7.0.6]}]}]
17:57:06.447 DEBUG [21] org.openqa.selenium.net.UrlChecker - Waiting for [http://localhost:16768/status]
17:57:06.448 DEBUG [23] org.openqa.selenium.net.UrlChecker - Polling http://localhost:16768/status
17:57:06.474 DEBUG [23] org.openqa.selenium.net.UrlChecker - Polling http://localhost:16768/status
17:57:06.500 DEBUG [23] org.openqa.selenium.net.UrlChecker - Polling http://localhost:16768/status
17:57:06.503 DEBUG [23] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@31d0a07c5 pairs: {GET /status HTTP/1.1: null}{User-Agent: Java/1.8.0_101}{Host: localhost:16768}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
17:57:06.505 DEBUG [23] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@3f1748364 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 126}{Content-Type: application/json; charset=utf-8}{Connection: close}
17:57:06.539 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:06.545 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:06.546 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:06.554 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:06.556 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:06.557 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:06.558 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56906<->127.0.0.1:16768
17:57:06.558 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: set socket timeout to 10800000
17:57:06.559 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session HTTP/1.1
17:57:06.559 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:06.559 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:06.561 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> POST /session HTTP/1.1
17:57:06.561 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> Content-Type: application/json; charset=utf-8
17:57:06.561 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> Content-Length: 158
17:57:06.561 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> Host: localhost:16768
17:57:06.562 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
17:57:06.562 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:06.562 DEBUG [21] org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
17:57:06.562 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "POST /session HTTP/1.1[\r][\n]"
17:57:06.563 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:06.563 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "Content-Length: 158[\r][\n]"
17:57:06.563 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "Host: localhost:16768[\r][\n]"
17:57:06.563 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
17:57:06.564 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:06.564 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:06.564 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
17:57:06.564 DEBUG [21] org.apache.http.wire - http-outgoing-0 >> "{"desiredCapabilities":{"name":"Behat feature suite","browserName":"chrome","ignoreZoomSetting":false,"browser":"chrome","tags":["ff8c4e25538b","PHP 7.0.6"]}}"
17:57:08.059 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
17:57:08.059 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "Content-Length:765[\r][\n]"
17:57:08.059 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:08.059 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "Connection:close[\r][\n]"
17:57:08.060 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "[\r][\n]"
17:57:08.060 DEBUG [21] org.apache.http.wire - http-outgoing-0 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.23.409710 (0c4084804897ac45b5ff65a690ec6583b97225c0)","userDataDir":"/var/folders/cm/kdsckr551h1gpw3jtp263kv5kk9q5k/T/.org.chromium.Chromium.NeDp9Q"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Mac OS X","rotatable":false,"takesHeapSnapshot":true,"takesScreenshot":true,"version":"53.0.2785.101","webStorageEnabled":true}}"
17:57:08.063 DEBUG [21] org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200 OK
17:57:08.064 DEBUG [21] org.apache.http.headers - http-outgoing-0 << Content-Length:765
17:57:08.064 DEBUG [21] org.apache.http.headers - http-outgoing-0 << Content-Type:application/json; charset=utf-8
17:57:08.064 DEBUG [21] org.apache.http.headers - http-outgoing-0 << Connection:close
17:57:08.071 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: Close connection
17:57:08.072 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:08.072 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:08.076 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [null, newSession {desiredCapabilities=Capabilities [{browser=chrome, name=Behat feature suite, browserName=chrome, ignoreZoomSetting=false, tags=[ff8c4e25538b, PHP 7.0.6]}]}]
17:57:08.105 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [new session: Capabilities [{browser=chrome, name=Behat feature suite, browserName=chrome, ignoreZoomSetting=false, tags=[ff8c4e25538b, PHP 7.0.6]}]]
17:57:08.106 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session
17:57:08.155 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/url
17:57:08.157 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [get: http://the-internet.herokuapp.com/upload])
17:57:08.158 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: get [06016b86ef93b452ea5e0191dd767e1e, get {url=http://the-internet.herokuapp.com/upload}]
17:57:08.159 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:08.159 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:08.159 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:08.160 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:08.160 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:08.160 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:08.160 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56940<->127.0.0.1:16768
17:57:08.161 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: set socket timeout to 10800000
17:57:08.161 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session/06016b86ef93b452ea5e0191dd767e1e/url HTTP/1.1
17:57:08.161 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:08.161 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:08.161 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> POST /session/06016b86ef93b452ea5e0191dd767e1e/url HTTP/1.1
17:57:08.161 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> Content-Type: application/json; charset=utf-8
17:57:08.162 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> Content-Length: 50
17:57:08.162 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> Host: localhost:16768
17:57:08.162 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
17:57:08.162 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:08.162 DEBUG [21] org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
17:57:08.163 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "POST /session/06016b86ef93b452ea5e0191dd767e1e/url HTTP/1.1[\r][\n]"
17:57:08.163 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:08.163 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "Content-Length: 50[\r][\n]"
17:57:08.163 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "Host: localhost:16768[\r][\n]"
17:57:08.164 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
17:57:08.164 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:08.167 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:08.167 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
17:57:08.167 DEBUG [21] org.apache.http.wire - http-outgoing-1 >> "{"url":"http://the-internet.herokuapp.com/upload"}"
17:57:09.956 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]"
17:57:09.957 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "Content-Length:72[\r][\n]"
17:57:09.957 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:09.957 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "Connection:close[\r][\n]"
17:57:09.957 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
17:57:09.958 DEBUG [21] org.apache.http.wire - http-outgoing-1 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":null}"
17:57:09.958 DEBUG [21] org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK
17:57:09.958 DEBUG [21] org.apache.http.headers - http-outgoing-1 << Content-Length:72
17:57:09.958 DEBUG [21] org.apache.http.headers - http-outgoing-1 << Content-Type:application/json; charset=utf-8
17:57:09.958 DEBUG [21] org.apache.http.headers - http-outgoing-1 << Connection:close
17:57:09.959 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
17:57:09.959 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:09.959 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:09.960 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, get {url=http://the-internet.herokuapp.com/upload}]
17:57:09.960 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [get: http://the-internet.herokuapp.com/upload]
17:57:09.961 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/url
17:57:10.344 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/elements
17:57:10.346 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [find elements: By.xpath: //html/descendant-or-self::*[@id = 'file-upload']])
17:57:10.347 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: findElements [06016b86ef93b452ea5e0191dd767e1e, findElements {using=xpath, value=//html/descendant-or-self::*[@id = 'file-upload']}]
17:57:10.348 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.348 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.348 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.349 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.349 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.349 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.350 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56963<->127.0.0.1:16768
17:57:10.350 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 10800000
17:57:10.350 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session/06016b86ef93b452ea5e0191dd767e1e/elements HTTP/1.1
17:57:10.350 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.350 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.350 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> POST /session/06016b86ef93b452ea5e0191dd767e1e/elements HTTP/1.1
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> Content-Type: application/json; charset=utf-8
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> Content-Length: 77
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> Host: localhost:16768
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.351 DEBUG [21] org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate
17:57:10.351 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "POST /session/06016b86ef93b452ea5e0191dd767e1e/elements HTTP/1.1[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "Content-Length: 77[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "Host: localhost:16768[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.352 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"
17:57:10.353 DEBUG [21] org.apache.http.wire - http-outgoing-2 >> "{"using":"xpath","value":"//html/descendant-or-self::*[@id = 'file-upload']"}"
17:57:10.370 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.370 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "Content-Length:105[\r][\n]"
17:57:10.370 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.370 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "Connection:close[\r][\n]"
17:57:10.371 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "[\r][\n]"
17:57:10.371 DEBUG [21] org.apache.http.wire - http-outgoing-2 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":[{"ELEMENT":"0.35557352187916336-1"}]}"
17:57:10.371 DEBUG [21] org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200 OK
17:57:10.371 DEBUG [21] org.apache.http.headers - http-outgoing-2 << Content-Length:105
17:57:10.372 DEBUG [21] org.apache.http.headers - http-outgoing-2 << Content-Type:application/json; charset=utf-8
17:57:10.372 DEBUG [21] org.apache.http.headers - http-outgoing-2 << Connection:close
17:57:10.372 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: Close connection
17:57:10.373 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.373 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.374 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, findElements {using=xpath, value=//html/descendant-or-self::*[@id = 'file-upload']}]
17:57:10.390 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [find elements: By.xpath: //html/descendant-or-self::*[@id = 'file-upload']]
17:57:10.391 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/elements
17:57:10.426 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element
17:57:10.427 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [find element: By.xpath: (//html/descendant-or-self::*[@id = 'file-upload'])[1]])
17:57:10.428 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: findElement [06016b86ef93b452ea5e0191dd767e1e, findElement {using=xpath, value=(//html/descendant-or-self::*[@id = 'file-upload'])[1]}]
17:57:10.429 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.429 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.429 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.429 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 3][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.429 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.430 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.430 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56965<->127.0.0.1:16768
17:57:10.430 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-3: set socket timeout to 10800000
17:57:10.430 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1
17:57:10.430 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.431 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.431 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1
17:57:10.431 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> Content-Type: application/json; charset=utf-8
17:57:10.431 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> Content-Length: 82
17:57:10.431 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> Host: localhost:16768
17:57:10.431 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> Connection: Keep-Alive
17:57:10.432 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.432 DEBUG [21] org.apache.http.headers - http-outgoing-3 >> Accept-Encoding: gzip,deflate
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1[\r][\n]"
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "Content-Length: 82[\r][\n]"
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "Host: localhost:16768[\r][\n]"
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.432 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.433 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.433 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "[\r][\n]"
17:57:10.433 DEBUG [21] org.apache.http.wire - http-outgoing-3 >> "{"using":"xpath","value":"(//html/descendant-or-self::*[@id = 'file-upload'])[1]"}"
17:57:10.447 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.447 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "Content-Length:103[\r][\n]"
17:57:10.448 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.448 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "Connection:close[\r][\n]"
17:57:10.448 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "[\r][\n]"
17:57:10.448 DEBUG [21] org.apache.http.wire - http-outgoing-3 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":{"ELEMENT":"0.35557352187916336-1"}}"
17:57:10.448 DEBUG [21] org.apache.http.headers - http-outgoing-3 << HTTP/1.1 200 OK
17:57:10.448 DEBUG [21] org.apache.http.headers - http-outgoing-3 << Content-Length:103
17:57:10.449 DEBUG [21] org.apache.http.headers - http-outgoing-3 << Content-Type:application/json; charset=utf-8
17:57:10.449 DEBUG [21] org.apache.http.headers - http-outgoing-3 << Connection:close
17:57:10.449 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-3: Close connection
17:57:10.449 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.450 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 3][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.450 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, findElement {using=xpath, value=(//html/descendant-or-self::*[@id = 'file-upload'])[1]}]
17:57:10.451 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [find element: By.xpath: (//html/descendant-or-self::*[@id = 'file-upload'])[1]]
17:57:10.451 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element
17:57:10.455 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/displayed
17:57:10.456 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [is displayed: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']]])
17:57:10.457 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: isElementDisplayed [06016b86ef93b452ea5e0191dd767e1e, isElementDisplayed {id=0.35557352187916336-1}]
17:57:10.458 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.458 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.459 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.459 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 4][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.459 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.459 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.460 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56967<->127.0.0.1:16768
17:57:10.460 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-4: set socket timeout to 10800000
17:57:10.460 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/displayed HTTP/1.1
17:57:10.460 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.460 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/displayed HTTP/1.1
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> Cache-Control: no-cache
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> Host: localhost:16768
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> Connection: Keep-Alive
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.461 DEBUG [21] org.apache.http.headers - http-outgoing-4 >> Accept-Encoding: gzip,deflate
17:57:10.461 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/displayed HTTP/1.1[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "Cache-Control: no-cache[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "Host: localhost:16768[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.462 DEBUG [21] org.apache.http.wire - http-outgoing-4 >> "[\r][\n]"
17:57:10.474 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.474 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "Content-Length:72[\r][\n]"
17:57:10.474 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.474 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "Connection:close[\r][\n]"
17:57:10.474 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "[\r][\n]"
17:57:10.475 DEBUG [21] org.apache.http.wire - http-outgoing-4 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":true}"
17:57:10.475 DEBUG [21] org.apache.http.headers - http-outgoing-4 << HTTP/1.1 200 OK
17:57:10.475 DEBUG [21] org.apache.http.headers - http-outgoing-4 << Content-Length:72
17:57:10.475 DEBUG [21] org.apache.http.headers - http-outgoing-4 << Content-Type:application/json; charset=utf-8
17:57:10.475 DEBUG [21] org.apache.http.headers - http-outgoing-4 << Connection:close
17:57:10.476 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-4: Close connection
17:57:10.476 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.476 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 4][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.477 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, isElementDisplayed {id=0.35557352187916336-1}]
17:57:10.477 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [is displayed: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']]]
17:57:10.477 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/displayed
17:57:10.480 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element
17:57:10.481 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [find element: By.xpath: (//html/descendant-or-self::*[@id = 'file-upload'])[1]])
17:57:10.481 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: findElement [06016b86ef93b452ea5e0191dd767e1e, findElement {using=xpath, value=(//html/descendant-or-self::*[@id = 'file-upload'])[1]}]
17:57:10.482 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.482 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.483 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.483 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 5][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.483 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.483 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.484 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56969<->127.0.0.1:16768
17:57:10.484 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-5: set socket timeout to 10800000
17:57:10.484 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1
17:57:10.484 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.485 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> Content-Type: application/json; charset=utf-8
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> Content-Length: 82
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> Host: localhost:16768
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> Connection: Keep-Alive
17:57:10.485 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.486 DEBUG [21] org.apache.http.headers - http-outgoing-5 >> Accept-Encoding: gzip,deflate
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "POST /session/06016b86ef93b452ea5e0191dd767e1e/element HTTP/1.1[\r][\n]"
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "Content-Length: 82[\r][\n]"
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "Host: localhost:16768[\r][\n]"
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.486 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.487 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.487 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "[\r][\n]"
17:57:10.487 DEBUG [21] org.apache.http.wire - http-outgoing-5 >> "{"using":"xpath","value":"(//html/descendant-or-self::*[@id = 'file-upload'])[1]"}"
17:57:10.494 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.494 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "Content-Length:103[\r][\n]"
17:57:10.495 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.495 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "Connection:close[\r][\n]"
17:57:10.495 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "[\r][\n]"
17:57:10.495 DEBUG [21] org.apache.http.wire - http-outgoing-5 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":{"ELEMENT":"0.35557352187916336-1"}}"
17:57:10.495 DEBUG [21] org.apache.http.headers - http-outgoing-5 << HTTP/1.1 200 OK
17:57:10.495 DEBUG [21] org.apache.http.headers - http-outgoing-5 << Content-Length:103
17:57:10.495 DEBUG [21] org.apache.http.headers - http-outgoing-5 << Content-Type:application/json; charset=utf-8
17:57:10.495 DEBUG [21] org.apache.http.headers - http-outgoing-5 << Connection:close
17:57:10.496 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-5: Close connection
17:57:10.496 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.496 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 5][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.497 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, findElement {using=xpath, value=(//html/descendant-or-self::*[@id = 'file-upload'])[1]}]
17:57:10.498 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [find element: By.xpath: (//html/descendant-or-self::*[@id = 'file-upload'])[1]]
17:57:10.499 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element
17:57:10.503 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/name
17:57:10.504 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [tag name: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']]])
17:57:10.504 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: getElementTagName [06016b86ef93b452ea5e0191dd767e1e, getElementTagName {id=0.35557352187916336-1}]
17:57:10.505 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.505 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.505 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.505 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 6][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.506 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.506 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.506 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56971<->127.0.0.1:16768
17:57:10.507 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-6: set socket timeout to 10800000
17:57:10.507 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/name HTTP/1.1
17:57:10.507 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.507 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/name HTTP/1.1
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> Cache-Control: no-cache
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> Host: localhost:16768
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> Connection: Keep-Alive
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.508 DEBUG [21] org.apache.http.headers - http-outgoing-6 >> Accept-Encoding: gzip,deflate
17:57:10.508 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/name HTTP/1.1[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "Cache-Control: no-cache[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "Host: localhost:16768[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.509 DEBUG [21] org.apache.http.wire - http-outgoing-6 >> "[\r][\n]"
17:57:10.514 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.514 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "Content-Length:75[\r][\n]"
17:57:10.514 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.514 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "Connection:close[\r][\n]"
17:57:10.514 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "[\r][\n]"
17:57:10.515 DEBUG [21] org.apache.http.wire - http-outgoing-6 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":"input"}"
17:57:10.515 DEBUG [21] org.apache.http.headers - http-outgoing-6 << HTTP/1.1 200 OK
17:57:10.515 DEBUG [21] org.apache.http.headers - http-outgoing-6 << Content-Length:75
17:57:10.515 DEBUG [21] org.apache.http.headers - http-outgoing-6 << Content-Type:application/json; charset=utf-8
17:57:10.515 DEBUG [21] org.apache.http.headers - http-outgoing-6 << Connection:close
17:57:10.515 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-6: Close connection
17:57:10.516 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.516 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 6][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.516 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, getElementTagName {id=0.35557352187916336-1}]
17:57:10.517 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [tag name: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']]]
17:57:10.517 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/name
17:57:10.521 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/attribute/type
17:57:10.522 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [get element attribute: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']], type])
17:57:10.522 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: getElementAttribute [06016b86ef93b452ea5e0191dd767e1e, getElementAttribute {id=0.35557352187916336-1, name=type}]
17:57:10.523 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.523 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.523 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.524 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 7][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.524 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.524 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.525 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56973<->127.0.0.1:16768
17:57:10.526 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-7: set socket timeout to 10800000
17:57:10.526 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/attribute/type HTTP/1.1
17:57:10.526 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.526 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.527 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/attribute/type HTTP/1.1
17:57:10.527 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> Cache-Control: no-cache
17:57:10.527 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> Host: localhost:16768
17:57:10.527 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> Connection: Keep-Alive
17:57:10.527 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.528 DEBUG [21] org.apache.http.headers - http-outgoing-7 >> Accept-Encoding: gzip,deflate
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "GET /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/attribute/type HTTP/1.1[\r][\n]"
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "Cache-Control: no-cache[\r][\n]"
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "Host: localhost:16768[\r][\n]"
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.528 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.529 DEBUG [21] org.apache.http.wire - http-outgoing-7 >> "[\r][\n]"
17:57:10.538 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.538 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "Content-Length:74[\r][\n]"
17:57:10.539 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.539 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "Connection:close[\r][\n]"
17:57:10.539 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "[\r][\n]"
17:57:10.539 DEBUG [21] org.apache.http.wire - http-outgoing-7 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":"file"}"
17:57:10.539 DEBUG [21] org.apache.http.headers - http-outgoing-7 << HTTP/1.1 200 OK
17:57:10.539 DEBUG [21] org.apache.http.headers - http-outgoing-7 << Content-Length:74
17:57:10.539 DEBUG [21] org.apache.http.headers - http-outgoing-7 << Content-Type:application/json; charset=utf-8
17:57:10.540 DEBUG [21] org.apache.http.headers - http-outgoing-7 << Connection:close
17:57:10.540 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-7: Close connection
17:57:10.540 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.540 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 7][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.541 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, getElementAttribute {id=0.35557352187916336-1, name=type}]
17:57:10.541 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [get element attribute: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']], type]
17:57:10.542 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: GET /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/attribute/type
17:57:10.545 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Handling: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/value
17:57:10.546 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Executing: [send keys: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']], [/v3/features/assets/wrongCoverArt.jpg]])
17:57:10.547 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executing: sendKeysToElement [06016b86ef93b452ea5e0191dd767e1e, sendKeysToElement {id=0.35557352187916336-1, value=[Ljava.lang.String;@38a4cfee}]
17:57:10.548 DEBUG [21] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
17:57:10.548 DEBUG [21] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
17:57:10.548 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.549 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 8][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
17:57:10.549 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:16768
17:57:10.549 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:16768
17:57:10.550 DEBUG [21] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56975<->127.0.0.1:16768
17:57:10.550 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-8: set socket timeout to 10800000
17:57:10.550 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Executing request POST /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/value HTTP/1.1
17:57:10.551 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:57:10.551 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:57:10.551 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> POST /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/value HTTP/1.1
17:57:10.551 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> Content-Type: application/json; charset=utf-8
17:57:10.551 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> Content-Length: 80
17:57:10.552 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> Host: localhost:16768
17:57:10.552 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> Connection: Keep-Alive
17:57:10.552 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)
17:57:10.552 DEBUG [21] org.apache.http.headers - http-outgoing-8 >> Accept-Encoding: gzip,deflate
17:57:10.552 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "POST /session/06016b86ef93b452ea5e0191dd767e1e/element/0.35557352187916336-1/value HTTP/1.1[\r][\n]"
17:57:10.552 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "Content-Length: 80[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "Host: localhost:16768[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "Connection: Keep-Alive[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_101)[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:57:10.553 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "[\r][\n]"
17:57:10.554 DEBUG [21] org.apache.http.wire - http-outgoing-8 >> "{"id":"0.35557352187916336-1","value":["/v3/features/assets/wrongCoverArt.jpg"]}"
17:57:10.575 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "HTTP/1.1 200 OK[\r][\n]"
17:57:10.575 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "Content-Length:72[\r][\n]"
17:57:10.576 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "Content-Type:application/json; charset=utf-8[\r][\n]"
17:57:10.576 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "Connection:close[\r][\n]"
17:57:10.577 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "[\r][\n]"
17:57:10.577 DEBUG [21] org.apache.http.wire - http-outgoing-8 << "{"sessionId":"06016b86ef93b452ea5e0191dd767e1e","status":0,"value":null}"
17:57:10.578 DEBUG [21] org.apache.http.headers - http-outgoing-8 << HTTP/1.1 200 OK
17:57:10.578 DEBUG [21] org.apache.http.headers - http-outgoing-8 << Content-Length:72
17:57:10.578 DEBUG [21] org.apache.http.headers - http-outgoing-8 << Content-Type:application/json; charset=utf-8
17:57:10.579 DEBUG [21] org.apache.http.headers - http-outgoing-8 << Connection:close
17:57:10.579 DEBUG [21] org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-8: Close connection
17:57:10.579 DEBUG [21] org.apache.http.impl.execchain.MainClientExec - Connection discarded
17:57:10.579 DEBUG [21] org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 8][route: {}->http://localhost:16768][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
17:57:10.580 DEBUG [21] org.openqa.selenium.remote.RemoteWebDriver - Executed: [06016b86ef93b452ea5e0191dd767e1e, sendKeysToElement {id=0.35557352187916336-1, value=[Ljava.lang.String;@38a4cfee}]
17:57:10.580 INFO [15] org.openqa.selenium.remote.server.DriverServlet - Done: [send keys: 0 [[ChromeDriver: chrome on MAC (06016b86ef93b452ea5e0191dd767e1e)] -> xpath: //html/descendant-or-self::*[@id = 'file-upload']], [/v3/features/assets/wrongCoverArt.jpg]]
17:57:10.580 DEBUG [15] org.openqa.selenium.remote.server.DriverServlet - Finished: POST /session/f48181c5-ae7e-49b1-90ee-6b92e5401fab/element/0/value
@smoke
Feature: test
Scenario:
Given I am on "upload.php"
When I add cover art "wrongCoverArt.jpg"
<?php
namespace Page;
use SensioLabs\Behat\PageObjectExtension\PageObject\Page;
class Uploader extends Page
{
/**
* @param string $filePath
*/
public function addCoverArt($filePath)
{
$uploadElement = $this->find('css', '#cover-art-uploader');
$uploadElement->attachFile($filePath);
// $this->waitFor(10000, function(){});
}
}
/**
* @When I add cover art :arg1
*
*/
public function iAddCoverArt($arg1)
{
$filePath = $this->getMinkParameter('files_path') . DIRECTORY_SEPARATOR . trim($arg1);
$this->uploader->addCoverArt($filePath);
}
<!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">
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file" id="cover-art-uploader"/><br/>
</form>
</div>
<script type="text/javascript">
$(function() {
$('#cover-art-uploader').on('change', function(e) {
console.log($(this).get(0).files)
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment