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

web side error #316

Open
time2funk opened this issue Oct 6, 2017 · 4 comments
Open

web side error #316

time2funk opened this issue Oct 6, 2017 · 4 comments

Comments

@time2funk
Copy link

time2funk commented Oct 6, 2017

Hello, i am using [email protected] with npm -v 5.4.2 and node v8.4.0
The error occurred after i login the form

outputs:
...
horseman .click() #login-button>input +191ms
horseman .click() done +3ms
horseman .waitForNextPage() +0ms
ReferenceError: Can't find variable: Set
ReferenceError: Can't find variable: ReactForShim
TypeError: undefined is not an object (evaluating 'MyCase.LawyerDash.setupWelcomePanel')
ReferenceError: Can't find variable: ReactForShim
ReferenceError: Can't find variable: ReactForShim
ReferenceError: Can't find variable: ReactForShim

@time2funk time2funk reopened this Oct 6, 2017
@time2funk
Copy link
Author

selection_00 5

@time2funk
Copy link
Author

The PhantomJs -v 2.1.1

@johntitus
Copy link
Owner

Please provide example code that recreates the problem.

@time2funk
Copy link
Author

time2funk commented Oct 9, 2017

there is no problems in common browsers...
hear the code:


"use strict"
const Horseman  = require('node-horseman');
const email     = ' . . . ';
const password  = ' . . . ';

const startURL  = ' . . . ';

const userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0';
const horseman  = new Horseman({
    phantomOptions: {
        'load-images': true,
        'ignore-ssl-errors': true,
        'ssl-protocol': 'any',
    },
    'cookiesEnabled': true,
    'timeout': 160000,
    'interval': 200,
    "debugPort": 5002
});

horseman
    .cookies([])
    .userAgent(userAgent)
    .on('ConsoleMessage', function(msg) {
        console.log(msg);
    })
    .on('error', function( msg, trace ){
        console.log(msg);
    })
    .open(startURL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants