Giter Site home page Giter Site logo

nightwatch-circleci's People

Contributors

beatfactor avatar christophehurpeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nightwatch-circleci's Issues

Connection refused!

Hi. I'm stuck with nightwatch on CircleCI, so finally got here.
I saw your build was passed. But when I forked this repo and tried to build, it failed when running npm test:

npm test

> [email protected] test /home/ubuntu/nightwatch-circleci
> nightwatch --env circleci

Starting selenium server... started - PID:  13380

[Digg] Test Suite
=====================
digg module is disabled, skipping...

[Github] Test Suite
=======================

Running:  Demo test GitHub

Error retrieving a new session from the selenium server

Connection refused! Is selenium server started?
{ state: 'unhandled error',
  sessionId: null,
  hCode: 1168589602,
  value: 
   { localizedMessage: 'Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:\nG\tgetModTime: Recursive scan of [email protected]\n1483895338058\taddons.xpi\tDEBUG\tUpdating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"3e5H-X0ouGQo","location":"app-global","version":"47.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/opt/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1466731683000,"updateDate":1466731683000,"applyBackgroundUpdates":1,"skinnable":true,"size":5028,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"47.0.1","maxVersion":"47.0.1"}],"targetPlatforms":[],"seen":true}\n1483895338058\taddons.xpi\tDEBUG\tgetModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}\n1483895338060\tDeferredSave.extensions.json\tDEBUG\tSave changes\n1483895338060\taddons.xpi\tDEBUG\tUpdating database with changes to installed add-ons\n1483895338060\taddons.xpi-utils\tDEBUG\tUpdating add-on states\n1483895338061\taddons.xpi-utils\tDEBUG\tWriting add-ons list\n1483895338062\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338063\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.0\n1483895338063\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338063\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.0.2\n1483895338064\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338065\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.3.2\n1483895338084\taddons.manager\tDEBUG\tRegistering shutdown blocker for XPIProvider\n1483895338085\taddons.manager\tDEBUG\tProvider finished startup: XPIProvider\n1483895338085\taddons.manager\tDEBUG\tStarting provider: LightweightThemeManager\n1483895338085\taddons.manager\tDEBUG\tRegistering shutdown blocker for LightweightThemeManager\n1483895338085\taddons.manager\tDEBUG\tProvider finished startup: LightweightThemeManager\n1483895338086\taddons.manager\tDEBUG\tStarting provider: GMPProvider\n1483895338093\taddons.manager\tDEBUG\tRegistering shutdown blocker for GMPProvider\n1483895338094\taddons.manager\tDEBUG\tProvider finished startup: GMPProvider\n1483895338094\taddons.manager\tDEBUG\tStarting provider: PluginProvider\n1483895338094\taddons.manager\tDEBUG\tRegistering shutdown blocker for PluginProvider\n1483895338094\taddons.manager\tDEBUG\tProvider finished startup: PluginProvider\n1483895338095\taddons.manager\tDEBUG\tCompleted startup sequence\n1483895338308\tDeferredSave.extensions.json\tDEBUG\tStarting write\n1483895338314\taddons.manager\tDEBUG\tStarting provider: <unnamed-provider>\n1483895338314\taddons.manager\tDEBUG\tRegistering shutdown blocker for <unnamed-provider>\n1483895338315\taddons.manager\tDEBUG\tProvider finished startup: <unnamed-provider>\n1483895338474\taddons.repository\tDEBUG\tNo addons.json found.\n1483895338475\tDeferredSave.addons.json\tDEBUG\tSave changes\n1483895338478\tDeferredSave.addons.json\tDEBUG\tStarting timer\n1483895338494\taddons.manager\tDEBUG\tStarting provider: PreviousExperimentProvider\n1483895338494\taddons.manager\tDEBUG\tRegistering shutdown blocker for PreviousExperimentProvider\n1483895338495\taddons.manager\tDEBUG\tProvider finished startup: PreviousExperimentProvider\n1483895338498\tDeferredSave.extensions.json\tDEBUG\tWrite succeeded\n1483895338498\taddons.xpi-utils\tDEBUG\tXPI Database saved, setting schema version preference to 17\n1483895338533\tDeferredSave.addons.json\tDEBUG\tStarting write\n1483895338542\tDeferredSave.addons.json\tDEBUG\tWrite succeeded\n',
     cause: null,
     suppressed: [],
     message: 'Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:\nG\tgetModTime: Recursive scan of [email protected]\n1483895338058\taddons.xpi\tDEBUG\tUpdating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"3e5H-X0ouGQo","location":"app-global","version":"47.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/opt/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1466731683000,"updateDate":1466731683000,"applyBackgroundUpdates":1,"skinnable":true,"size":5028,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"47.0.1","maxVersion":"47.0.1"}],"targetPlatforms":[],"seen":true}\n1483895338058\taddons.xpi\tDEBUG\tgetModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}\n1483895338060\tDeferredSave.extensions.json\tDEBUG\tSave changes\n1483895338060\taddons.xpi\tDEBUG\tUpdating database with changes to installed add-ons\n1483895338060\taddons.xpi-utils\tDEBUG\tUpdating add-on states\n1483895338061\taddons.xpi-utils\tDEBUG\tWriting add-ons list\n1483895338062\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338063\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.0\n1483895338063\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338063\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.0.2\n1483895338064\taddons.xpi\tDEBUG\tRegistering manifest for /opt/firefox/browser/features/[email protected]\n1483895338065\taddons.xpi\tDEBUG\tCalling bootstrap method startup on [email protected] version 1.3.2\n1483895338084\taddons.manager\tDEBUG\tRegistering shutdown blocker for XPIProvider\n1483895338085\taddons.manager\tDEBUG\tProvider finished startup: XPIProvider\n1483895338085\taddons.manager\tDEBUG\tStarting provider: LightweightThemeManager\n1483895338085\taddons.manager\tDEBUG\tRegistering shutdown blocker for LightweightThemeManager\n1483895338085\taddons.manager\tDEBUG\tProvider finished startup: LightweightThemeManager\n1483895338086\taddons.manager\tDEBUG\tStarting provider: GMPProvider\n1483895338093\taddons.manager\tDEBUG\tRegistering shutdown blocker for GMPProvider\n1483895338094\taddons.manager\tDEBUG\tProvider finished startup: GMPProvider\n1483895338094\taddons.manager\tDEBUG\tStarting provider: PluginProvider\n1483895338094\taddons.manager\tDEBUG\tRegistering shutdown blocker for PluginProvider\n1483895338094\taddons.manager\tDEBUG\tProvider finished startup: PluginProvider\n1483895338095\taddons.manager\tDEBUG\tCompleted startup sequence\n1483895338308\tDeferredSave.extensions.json\tDEBUG\tStarting write\n1483895338314\taddons.manager\tDEBUG\tStarting provider: <unnamed-provider>\n1483895338314\taddons.manager\tDEBUG\tRegistering shutdown blocker for <unnamed-provider>\n1483895338315\taddons.manager\tDEBUG\tProvider finished startup: <unnamed-provider>\n1483895338474\taddons.repository\tDEBUG\tNo addons.json found.\n1483895338475\tDeferredSave.addons.json\tDEBUG\tSave changes\n1483895338478\tDeferredSave.addons.json\tDEBUG\tStarting timer\n1483895338494\taddons.manager\tDEBUG\tStarting provider: PreviousExperimentProvider\n1483895338494\taddons.manager\tDEBUG\tRegistering shutdown blocker for PreviousExperimentProvider\n1483895338495\taddons.manager\tDEBUG\tProvider finished startup: PreviousExperimentProvider\n1483895338498\tDeferredSave.extensions.json\tDEBUG\tWrite succeeded\n1483895338498\taddons.xpi-utils\tDEBUG\tXPI Database saved, setting schema version preference to 17\n1483895338533\tDeferredSave.addons.json\tDEBUG\tStarting write\n1483895338542\tDeferredSave.addons.json\tDEBUG\tWrite succeeded\n',
     hCode: 1837949726,
     class: 'org.openqa.selenium.firefox.NotConnectedException',
     screen: null },
  class: 'org.openqa.selenium.remote.Response',
  status: 13 }

npm ERR! Test failed.  See above for more details.

npm test returned exit code 1

Writing assertion for Array length

@beatfactor Hi sir, actually i have a doubt regarding nightwatch i.e.,I have an array of elements. The array length changes according to different pages. how can i write assertion for that.
EG: var menu1:['#menu','.navbar.bar'];
var menu2:['#body','.navbar.bar'];
how can write assertion to check menu1.length=2&menu2.length=2?
please help me regarding this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.