You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ghost import Ghost
ghost = Ghost()
with ghost.start() as session:
page, extra_resources = session.open("http://google.com")
assert page.http_status == 200 and 'jeanphix' in page.content
The funny part is, that the code you post save the screen_shot.png, but crashes...
The examples in the documentation didn't worked for me. I looked at the source and then I tried the following lines, which did the job:
`from ghost import Ghost, Session
ghost = Ghost()
ghost = Session(ghost)
ghost.open('http://www.google.com')
ghost.capture_to('screen_shot.png')`
Nice tool, this example maybe helpful for others - I hope.
The text was updated successfully, but these errors were encountered: