webElem: An object of class "wElement". A web Element object see wbElement.
file: If not null the decoded PNG is written to file using the string provided here. Defaults to NULL.
display: logical Display the PNG or not (default is set in getOption("seleniumPipes_display_screenshot")).
useViewer: A viewer to view the PNG. Looks for the RSudio viewer by default.
returnPNG: logical return the decoded PNG. If false (default) webElem is returned to allw chaining.
...: Additonal function arguments - Currently passes the retry argument.
Returns
If returnPNG is FALSE the web Element object is returned and additonal chaining is possible. If TRUE then the decoded base64 image is returned see base64_dec