Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functional test failures in common.getApp() #7253

Closed
LeeDr opened this issue May 20, 2016 · 7 comments
Closed

functional test failures in common.getApp() #7253

LeeDr opened this issue May 20, 2016 · 7 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:QA Team label for QA Team test

Comments

@LeeDr
Copy link

LeeDr commented May 20, 2016

I'm not sure what has caused this to start popping up but it's caused a couple of test failures lately;

For example, this jenkins run which has only a single line change to a console test;
http://build-eu-00.elastic.co/job/kibana_core_pr/3754/consoleFull

has multiple instances of this problem. Here's an example;

The problem below starts at 16:47:02.962. The last passing test was in status page and so the next test suite is settings._initial_state. The before method reloads the empty .kibana index and the is calling settingsPage.navigateTo(); which calls getApp(). That method uses the ".app-wrapper .application" css selector.

>> PASS: firefox on any platform - kibana - status page - should show the kibana plugin as ready (168ms)
>> 0/1 tests failed
INFO - Thunderbolt - cluster.metadata - [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [config]
INFO - Thunderbolt - cluster.routing.allocation - Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).
INFO - Thunderbolt - cluster.metadata - [.kibana/ujxHKCa7TU2oaTGAfl3ulg] update_mapping [config]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.17] creating index, cause [api], templates [], shards [1]/[0], mappings [_default_]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18] creating index, cause [api], templates [], shards [1]/[0], mappings [_default_]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.17/BwE16OLsSV6XsL--cYa5sg] create_mapping [apache]
INFO - Thunderbolt - cluster.routing.allocation - Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[logstash-2015.09.18][0]] ...]).
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.17/BwE16OLsSV6XsL--cYa5sg] update_mapping [apache]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18/c91Rjp5FT8iq_-I5wHSxTA] create_mapping [apache]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.17/BwE16OLsSV6XsL--cYa5sg] create_mapping [nginx]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18/c91Rjp5FT8iq_-I5wHSxTA] update_mapping [apache]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.17/BwE16OLsSV6XsL--cYa5sg] update_mapping [apache]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18/c91Rjp5FT8iq_-I5wHSxTA] create_mapping [nginx]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18/c91Rjp5FT8iq_-I5wHSxTA] update_mapping [nginx]
INFO - Thunderbolt - cluster.metadata - [logstash-2015.09.18/c91Rjp5FT8iq_-I5wHSxTA] update_mapping [apache]
INFO - Thunderbolt - cluster.metadata - [.kibana/ujxHKCa7TU2oaTGAfl3ulg] create_mapping [server]
INFO - Thunderbolt - cluster.metadata - [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [config]
managr    log   [16:46:33.698] [error][status][plugin:elasticsearch] Status changed from green to red - Elasticsearch is still initializing the kibana index.
INFO - Thunderbolt - cluster.routing.allocation - Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).
INFO - Thunderbolt - cluster.metadata - [.kibana/_d558W3KRiW1qqFtAe4gRA] update_mapping [config]
16:46:33.878: navigating to settings url: http://user:notsecure@localhost:5620/app/kibana#/settings
16:46:33.879: navigate to: http://user:notsecure@localhost:5620/app/kibana#/settings
INFO - Thunderbolt - cluster.metadata - [.kibana/_d558W3KRiW1qqFtAe4gRA] create_mapping [server]
managr    log   [16:46:36.286] [info][status][plugin:elasticsearch] Status changed from red to green - Kibana index ready
16:46:40.564: returned from get, calling refresh
16:46:46.179: check testStatusPage
16:46:46.179: self.checkForKibanaApp()
INFO - Thunderbolt - cluster.metadata - [.kibana/_d558W3KRiW1qqFtAe4gRA] create_mapping [index-pattern]
16:47:02.962: kibana check failed
16:47:02.962: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element / {"using":"css selector","value":".app-wrapper .application"}] Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'slave12.build.ci.hetz.es.io', ip: '5.9.121.212', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: '1.8.0_72'
Driver info: driver.version: unknown]
  name: 'NoSuchElement',
  message: '[POST http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element / {"using":"css selector","value":".app-wrapper .application"}] Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
  status: 7,
  detail: 
   { additionalInformation: '\nDriver info: driver.version: unknown',
     localizedMessage: 'Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
     supportUrl: 'http://seleniumhq.org/exceptions/no_such_element.html',
     systemInformation: 'System info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'',
     cause: null,
     stackTrace: [ [Object], [Object] ],
     suppressed: [],
     message: 'Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
     hCode: 1300904412,
     class: 'org.openqa.selenium.NoSuchElementException',
     buildInformation: 
      { buildRevision: '35ae25b',
        buildTime: '2016-03-15 17:00:58',
        releaseLabel: '2.53.0',
        hCode: 224786145,
        class: 'org.openqa.selenium.internal.BuildInfo' },
     screen: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 00 00 00 04 00 08 02 00 00 00 31 f1 63 14 00 00 30 62 49 44 41 54 78 da ec dd 81 75 da 3a 00 ... > },
  request: 
   { url: 'http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element',
     method: 'POST',
     data: { using: 'css selector', value: '.app-wrapper .application' } },
  response: 
   { data: <Buffer 7b 22 73 74 61 74 65 22 3a 22 6e 6f 20 73 75 63 68 20 65 6c 65 6d 65 6e 74 22 2c 22 73 65 73 73 69 6f 6e 49 64 22 3a 22 38 30 34 33 61 37 61 33 2d 63 ... >,
     getHeader: [Function],
     requestOptions: 
      { followRedirects: false,
        handleAs: 'text',
        headers: [Object],
        method: 'POST',
        data: '{"using":"css selector","value":".app-wrapper .application"}' },
     statusCode: 500,
     url: 'http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element',
     nativeResponse: 
      IncomingMessage {
        _readableState: [Object],
        readable: false,
        domain: null,
        _events: [Object],
        _eventsCount: 2,
        _maxListeners: undefined,
        socket: [Object],
        connection: [Object],
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        headers: [Object],
        rawHeaders: [Object],
        trailers: {},
        rawTrailers: [],
        upgrade: false,
        url: '',
        method: null,
        statusCode: 500,
        statusMessage: 'Internal Server Error',
        client: [Object],
        _consuming: true,
        _dumped: false,
        req: [Object],
        read: [Function] } } }
16:47:02.976: kibanaLoaded = false
16:47:02.976: Kibana is not loaded, retrying
16:47:02.997: tryForTime failure: Kibana is not loaded, retrying
16:47:03.499: navigate to: http://user:notsecure@localhost:5620/app/kibana#/settings
16:47:13.631: returned from get, calling refresh
16:47:16.735: check testStatusPage
16:47:16.735: self.checkForKibanaApp()
16:47:32.715: kibana check failed
16:47:32.715: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element / {"using":"css selector","value":".app-wrapper .application"}] Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'slave12.build.ci.hetz.es.io', ip: '5.9.121.212', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: '1.8.0_72'
Driver info: driver.version: unknown]
  name: 'NoSuchElement',
  message: '[POST http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element / {"using":"css selector","value":".app-wrapper .application"}] Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
  status: 7,
  detail: 
   { additionalInformation: '\nDriver info: driver.version: unknown',
     localizedMessage: 'Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
     supportUrl: 'http://seleniumhq.org/exceptions/no_such_element.html',
     systemInformation: 'System info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'',
     cause: null,
     stackTrace: [ [Object], [Object] ],
     suppressed: [],
     message: 'Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'slave12.build.ci.hetz.es.io\', ip: \'5.9.121.212\', os.name: \'Linux\', os.arch: \'amd64\', os.version: \'3.13.0-24-generic\', java.version: \'1.8.0_72\'\nDriver info: driver.version: unknown',
     hCode: 1239799055,
     class: 'org.openqa.selenium.NoSuchElementException',
     buildInformation: 
      { buildRevision: '35ae25b',
        buildTime: '2016-03-15 17:00:58',
        releaseLabel: '2.53.0',
        hCode: 992839360,
        class: 'org.openqa.selenium.internal.BuildInfo' },
     screen: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 00 00 00 04 00 08 02 00 00 00 31 f1 63 14 00 00 30 4b 49 44 41 54 78 da ec dd 81 75 da 3a 00 ... > },
  request: 
   { url: 'http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element',
     method: 'POST',
     data: { using: 'css selector', value: '.app-wrapper .application' } },
  response: 
   { data: <Buffer 7b 22 73 74 61 74 65 22 3a 22 6e 6f 20 73 75 63 68 20 65 6c 65 6d 65 6e 74 22 2c 22 73 65 73 73 69 6f 6e 49 64 22 3a 22 38 30 34 33 61 37 61 33 2d 63 ... >,
     getHeader: [Function],
     requestOptions: 
      { followRedirects: false,
        handleAs: 'text',
        headers: [Object],
        method: 'POST',
        data: '{"using":"css selector","value":".app-wrapper .application"}' },
     statusCode: 500,
     url: 'http://localhost:4444/wd/hub/session/8043a7a3-ca2a-42ed-b05e-1a5bcae60fe6/element',
     nativeResponse: 
      IncomingMessage {
        _readableState: [Object],
        readable: false,
        domain: null,
        _events: [Object],
        _eventsCount: 2,
        _maxListeners: undefined,
        socket: [Object],
        connection: [Object],
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        headers: [Object],
        rawHeaders: [Object],
        trailers: {},
        rawTrailers: [],
        upgrade: false,
        url: '',
        method: null,
        statusCode: 500,
        statusMessage: 'Internal Server Error',
        client: [Object],
        _consuming: true,
        _dumped: false,
        req: [Object],
        read: [Function] } } }
16:47:32.721: kibanaLoaded = false
16:47:32.721: Kibana is not loaded, retrying
16:47:32.723: tryForTime failure: Kibana is not loaded, retrying
SUITE ERROR
Error: timeout Kibana is not loaded, retrying
  at attempt  <test/support/pages/common.js:212:17>
  at tryCatcher  <node_modules/bluebird/js/main/util.js:26:23>
  at Promise._settlePromiseFromHandler  <node_modules/bluebird/js/main/promise.js:503:31>
  at Promise._settlePromiseAt  <node_modules/bluebird/js/main/promise.js:577:18>
  at Promise._settlePromises  <node_modules/bluebird/js/main/promise.js:693:14>
  at Async._drainQueue  <node_modules/bluebird/js/main/async.js:123:16>
  at Async._drainQueues  <node_modules/bluebird/js/main/async.js:133:10>
  at Immediate.Async.drainQueues [as _onImmediate]  <node_modules/bluebird/js/main/async.js:15:14>
  at processImmediate [as _immediateCallback]  <timers.js:383:17>
>> 5/5 tests failed
@LeeDr LeeDr added bug Fixes for quality problems that affect the customer experience test labels May 20, 2016
@LeeDr
Copy link
Author

LeeDr commented May 20, 2016

@w33ble could you please take a look at this when you have time. I think you implemented this method and I'm not too clear on what it does or what could be causing it to fail.

@LeeDr
Copy link
Author

LeeDr commented May 20, 2016

Notice the time gap of about 15 seconds here, which is the setFindTimeout. And this is already wrapped in a tryForTime so it's going through 2 cycles of this before that times out in 40 seconds in this case. But this shouldn't ever take even 15 seconds.

16:46:46.179: self.checkForKibanaApp()
INFO - Thunderbolt - cluster.metadata - [.kibana/_d558W3KRiW1qqFtAe4gRA] create_mapping [index-pattern]
16:47:02.962: kibana check failed
16:47:02.962: { [NoSuchElement:...

@LeeDr
Copy link
Author

LeeDr commented May 20, 2016

I just reproduced this locally while working on new dashboard tests. When it's happening locally on CHROME I see the Kibana window with no inner contents like this. And the test tried a couple of times (with a new t_ hash in the URL) but it kept coming up blank.

2016-05-20 16_08_39-kibana

Here again we see;
16:07:57.198: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element / {"using":"css selector","value":".app-wrapper .application"}] no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}

16:07:44.855: check testStatusPage
16:07:44.855: self.checkForKibanaApp()
16:07:45.398: current application: status_page
16:07:45.398: kibanaLoaded = false
16:07:45.398: Kibana is not loaded, retrying
16:07:45.400: tryForTime failure: Kibana is not loaded, retrying
16:07:45.903: navigate to: http://localhost:5601/app/kibana#/dashboard
16:07:46.007: returned from get, calling refresh
16:07:46.156: check testStatusPage
16:07:46.157: self.checkForKibanaApp()
16:07:57.198: kibana check failed
16:07:57.198: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element / {"using":"css selector","value":".app-wrapper .application"}] no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}
  (Session info: chrome=50.0.2661.102)
  (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.06 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'LeeD-ASUS', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_73'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\Users\Lee\AppData\Local\Temp\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 050146844a7d5c80e9978d12061698a0
* Element info: {Using=css selector, value=.app-wrapper .application}]
  name: 'NoSuchElement',
  message: '[POST http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element / {"using":"css selector","value":".app-wrapper .application"}] no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n  (Session info: chrome=50.0.2661.102)\n  (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
  status: 7,
  detail:
   { additionalInformation: '\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
     localizedMessage: 'no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n  (Session info: chrome=50.0.2661.102)\n  (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
     supportUrl: 'http://seleniumhq.org/exceptions/no_such_element.html',
     systemInformation: 'System info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'',
     cause: null,
     stackTrace:
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ],
     suppressed: [],
     message: 'no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n  (Session info: chrome=50.0.2661.102)\n  (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
     hCode: 406490856,
     class: 'org.openqa.selenium.NoSuchElementException',
     buildInformation:
      { buildRevision: '35ae25b',
        buildTime: '2016-03-15 17:00:58',
        releaseLabel: '2.53.0',
        hCode: 336619606,
        class: 'org.openqa.selenium.internal.BuildInfo' },
     screen: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 0f 00 00 00 08 70 08 02 00 00 00 1f dc 5c 25 00 00 80 00 49 44 41 54 78 da ec bd 87 57 5c 47 9a ... > },
  request:
   { url: 'http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element',
     method: 'POST',
     data: { using: 'css selector', value: '.app-wrapper .application' } },
  response:
   { data: <Buffer 7b 22 73 74 61 74 65 22 3a 22 6e 6f 20 73 75 63 68 20 65 6c 65 6d 65 6e 74 22 2c 22 73 65 73 73 69 6f 6e 49 64 22 3a 22 33 31 31 31 63 32 30 35 2d 31 ... >,
     getHeader: [Function],
     requestOptions:
      { followRedirects: false,
        handleAs: 'text',
        headers: [Object],
        method: 'POST',
        data: '{"using":"css selector","value":".app-wrapper .application"}' },
     statusCode: 500,
     url: 'http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element',
     nativeResponse:
      IncomingMessage {
        _readableState: [Object],
        readable: false,
        domain: null,
        _events: [Object],
        _eventsCount: 2,
        _maxListeners: undefined,
        socket: [Object],
        connection: [Object],
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        headers: [Object],
        rawHeaders: [Object],
        trailers: {},
        rawTrailers: [],
        upgrade: false,
        url: '',
        method: null,
        statusCode: 500,
        statusMessage: 'Internal Server Error',
        client: [Object],
        _consuming: true,
        _dumped: false,
        req: [Object],
        read: [Function] } } }
16:07:57.211: kibanaLoaded = false
16:07:57.211: Kibana is not loaded, retrying
16:07:57.213: tryForTime failure: Kibana is not loaded, retrying

@LeeDr
Copy link
Author

LeeDr commented May 20, 2016

It could be that my test is doing something bad while writing to the .kibana index. When I have the blank screen and refresh with the dev console open I see this;

PUT XHR http://localhost:5601/elasticsearch/.kibana/_mapping/dashboard 400 Bad Request

And http://localhost:9200/.kibana/_mapping shows (partially collapsed) that there's no dashboard mapping yet (should that "undefined" be there?);

2016-05-20 16_23_45-localhost_9200_ kibana__mapping

@LeeDr LeeDr assigned LeeDr and unassigned w33ble May 20, 2016
@LeeDr
Copy link
Author

LeeDr commented May 20, 2016

I'm having problems locally with my data loading which might be impacting this problem, but it happens on Jenkins too without my new data loading problems.

@LeeDr LeeDr assigned w33ble and unassigned LeeDr May 20, 2016
@LeeDr
Copy link
Author

LeeDr commented May 31, 2016

Here's another instance of the failure;
http://build-eu-00.elastic.co/job/kibana_core_pr/3872/consoleFull

16:47:12.400: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/8ed4ec4c-3bc3-42af-9fd7-44bd1c15da0b/element / {"using":"css selector","value":".app-wrapper .application"}] Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}

@w33ble w33ble removed their assignment Oct 31, 2016
@timroes timroes added Team:QA Team label for QA Team triage_needed labels Mar 10, 2018
@LeeDr
Copy link
Author

LeeDr commented Mar 5, 2019

It's been almost 2 years since the last comment. I don't think this issue is relevant any longer.

@LeeDr LeeDr closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:QA Team label for QA Team test
Projects
None yet
Development

No branches or pull requests

3 participants