Skip to content

Testcafe screenshot is not working for firefox on Cent os #200

Description

@sumant28

Scenario :
1] Using frontend-maven-plugin to download node and testcafe in project directory.
2] Running testcafe based tests from Java using xvfb-run command along with node and testcafe using code like :
Runtime.getRuntime().exec()
3] Using .testcaferc.json to add configuration where the screenshot is enabled.

The actual command that is running :
xvfb-run --server-num=43717 --server-args=-screen 0 1024x768x24 {project_root_path}/node/node {project_root_path}/node_modules/testcafe/lib/cli/cli.js 'path:/mnt/jenkins/firefox/firefox-68.1.0esr/firefox/firefox --start-fullscreen' {project_root_path}/src/test/resources/testcafe-test-files/transform-add-and-subtract-time.js

The error while taking the screenshot is :

Warnings (2): -- Was unable to take a screenshot due to an error.

  `Error: Command failed:
  {project_root_path}/node_modules/testcafe-browser-tools/bin/linux/glibc-64/screenshot
  200002
  {project_root_path}/target/screenshots/Add Time.png`

Software versions I am using :
Testcafe version : 1.1.0
FirefoxBinary version: Mozilla Firefox 68.1.0esr
CentOS version : Linux release 7.4.1708 (Core)

Can you please help me in resolving this issue ?
@AndreyBelym

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions