Skip to content

browser/get-screenshot-as requires casting #17

@jeroenvandijk

Description

@jeroenvandijk

Thank you for this library!

I was trying to get screenshots working. It took me a while before I figured out I had to do it outside of Webica because of casting:

It would be great if I could do this:

(chrome/start-chrome)
(browser/get "http://google.com")
(browser/get-screenshot-as org.openqa.selenium.OutputType/FILE)

However I need to do this to get it working:

(chrome/start-chrome)
(browser/get "http://google.com")
(.getScreenshotAs (cast org.openqa.selenium.TakesScreenshot (browser/instance)) org.openqa.selenium.OutputType/FILE)

Is this something Webica could do better or is it really an edge case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions