Mojo::Phantom to automate a web app #2069
Replies: 3 comments 1 reply
-
In theory that would work, but PhantomJS is dead and thus so is Mojo::Phantom. There was some work around using headless chrome but their documentation was so bad that that was abandoned too. |
Beta Was this translation helpful? Give feedback.
-
I saw this recent article about headless Chrome, so I'll give it a go and report back. (I'm just falling in love with the |
Beta Was this translation helpful? Give feedback.
-
Perhaps someday we can have a Mojo::Chrome though I see that that still uses Delays rather than async/await, so that shows how old it is. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use @jberger
Mojo::Phantom
to drive aPhantomJS
browser (and automate a web application)?I would like to expose a [Mojolicious] API that then fetches data from a backend JavaScript web application:
Few questions that come to mind:
Mojo::Phantom
help me save the resulting web page as an image (for debugging)?click_get()
inclick.t
is not stored)Mojo::Phantom
support "click" actions? (e.g. to handleonclick
oronsubmit
events)Any advice and recommendation is much appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions