Improve saveScreenshot() to capture full page

Open
#40 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
testing

Research direction

The issue identifies saveScreenshot in the WebDriver module and links CodeceptJS issue 522; start by locating that function and reviewing the reference. Reproduce the current 800x600 result with headless Chrome, then verify that the saved image captures the full page.

Written by the indexing model from the issue text.

Description

What are you trying to achieve?

With _saveScreenshot function, it will be good if it can get full screen result, similar like codeceptjs.
https://github.com/Codeception/CodeceptJS/issues/522

What do you get instead?

Currently the saveScreenshot feature only capture 800x600 image when running it via headless chrome.

Details
  • Codeception version: 3.0.3
  • PHP Version: 7.2
  • Operating System: macOS 10.14.1
  • Installation type: Composer
Dominant language
PHP
Stars
39
Forks
23
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-webdriver

All issues in Codeception/module-webdriver

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.