Screenshot
By default, all screenshot methods save the files in the current active directory.
Accessing the object
Reference
Get a PNG bytes content from the current viewport size
Save a PNG file from the current viewport size
To just save on the current workdir.
Or, if needed, specify the path.
Viewport screenshot example
Get a PNG bytes content from the complete page
Save a PNG file from the complete page
To just save on the current workdir.
Or, if needed, specify the path.
Full page screenshot example