HuddleEng / PhantomCSS

Visual/CSS regression testing with PhantomJS
MIT License
4.72k stars 259 forks source link

Error occurs after changing the file only in windows8.1 in linux working fine #101

Closed vaidhyanathan93 closed 9 years ago

vaidhyanathan93 commented 9 years ago

I tried to Just run the Demo file in my pc with win8.1. While running for the first time It was running correctly. After making an change in that html file and rerunning it produces an error . I am using phantomJS1.9 and casperJS

The same works in Linux(Ubuntu) and also in windows7

The error text as

#    file: demo/testsuite.js:1323
#    error: Cannot dispatch mousedown event on nonexistent selector: #cappuccino
-button
#           CasperError: Cannot dispatch mousedown event on nonexistent selector
: #cappuccino-button
#               at mouseEvent (C:/PhantomCSS/libs/CasperJs/modules/casper.js:132
3)
#               at click (C:/PhantomCSS/libs/CasperJs/modules/casper.js:428)
#               at demo/testsuite.js:80
#               at runStep (C:/PhantomCSS/libs/CasperJs/modules/casper.js:1523)
#               at checkStep (C:/PhantomCSS/libs/CasperJs/modules/casper.js:368)

#    stack: not provided
FAIL Cannot dispatch mousedown event on nonexistent selector: #close
#    type: uncaughtError
#    file: demo/testsuite.js:1323
#    error: Cannot dispatch mousedown event on nonexistent selector: #close
#           CasperError: Cannot dispatch mousedown event on nonexistent selector
: #close
#               at mouseEvent (C:/PhantomCSS/libs/CasperJs/modules/casper.js:132
3)
#               at click (C:/PhantomCSS/libs/CasperJs/modules/casper.js:428)
#               at demo/testsuite.js:85
#               at runStep (C:/PhantomCSS/libs/CasperJs/modules/casper.js:1523)
#               at checkStep (C:/PhantomCSS/libs/CasperJs/modules/casper.js:368)

#    stack: not provided

Must be your first time?
Some screenshots have been generated in the directory C:/PhantomCSS/screenshots
This is your 'baseline', check the images manually. If they're wrong, delete the
 images.
The next time you run these tests, new screenshots will be taken.  These screens
hots will be compared to the original.
If they are different, PhantomCSS will report a failure.

THE END.
FAIL 3 tests executed in 0.818s, 0 passed, 3 failed, 0 dubious, 0 skipped.

Details for the 3 failed tests:

In demo/testsuite.js:1323
  Coffee machine visual tests
    uncaughtError: Cannot dispatch mousedown event on nonexistent selector: #cof
fee-machine-button
In demo/testsuite.js:1323
  Coffee machine visual tests
    uncaughtError: Cannot dispatch mousedown event on nonexistent selector: #cap
puccino-button
In demo/testsuite.js:1323
  Coffee machine visual tests
    uncaughtError: Cannot dispatch mousedown event on nonexistent selector: #clo
se
jamescryer commented 9 years ago

Really difficult to tell what happened here. Could be anything from Invalid html markup to local server port conflicts. Let us know if you found what the problem was.

jamescryer commented 9 years ago

Closing issue, no repro