Giter Site home page Giter Site logo

Comments (4)

felicianotech avatar felicianotech commented on July 19, 2024

This depends on the tools you are using. Different tools have different ways to go about things. Since this is a server image, there's no real screen or monitor but you can change the virtualized window size. For example, if you were using Selenium (pre-installed) and Firefox, this Doc shows the setting you'd want to change: https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/firefox_exports_Options.html#windowSize

from cimg-node.

avilano avatar avilano commented on July 19, 2024

Thank you, I'm using Testcafe which uses this method (https://testcafe.io/documentation/402696/reference/test-api/testcontroller/maximizewindow#header) in combination with the cimg-node, google chorme and browser-tools. I am getting this warning when tests finish.

Warnings (1):
 --
  Was unable to maximize the window due to an error.

  The
  /home/circleci/bold/qa/node_modules/testcafe-browser-tools/bin/linux/glibc-64/maximize
  process failed with the null exit code.

Here is the job config:

<job-name>:
    working_directory: <some-path>
    docker:
      - image: cimg/node:lts-browsers
    resource_class: medium+
    steps:
      - checkout:
          path: <some-path>
      - browser-tools/install-chrome
      - browser-tools/install-chromedriver
      - node/install-packages
      - run:

from cimg-node.

BytesGuy avatar BytesGuy commented on July 19, 2024

@avilano I can only presume that this is an issue with testcafe at this point. I don't have any experience with it, but with selenium running driver.manage().window().setRect({width: 3840, height: 2160, x: 0, y: 0}); for example works perfectly fine.

Here is a screenshot from the test running in CircleCI using cimg/node:lts-browsers:

image

from cimg-node.

BytesGuy avatar BytesGuy commented on July 19, 2024

I'm going to close this issue as it doesn't appear to be directly tied to the image as I was able to set the window size as above. Please feel free to reopen this if required.

from cimg-node.

Related Issues (20)

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.