TypeError: Attempting to change the setter of an unconfigurable property. phantomjs + vue 3

Viewed 73

My project is in vuejs. I have written simple script to take screenshot of login page using phantomjs. But, No luck :-(

I have been searching solution for the above error from last 4 days.

Code :

'use strict'

var page = require("webpage").create();

page.open("http://localhost:8080/login", function () {
  setTimeout(() => {
    page.render("login.png");
    phantom.exit();
  }, 5000);
});

Result :

As result, I am getting a blank image with a loading symbol.

I am using ubuntu 20.04 phantomjs version is 2.1.1

Please help me to resolve this error. Thanks in advance :-)

0 Answers
Related