Execute code whenever an element matching selector appear

3 views
Skip to first unread message

valentin...@axopen.com

unread,
Jan 9, 2018, 8:56:20 AM1/9/18
to CasperJS
Is it possible to execute code (just a screenshot) every time an element matching a selector appear in DOM.

It's to catch all real time notification in my app. Wheenver a div with a certain class is created I want a screenshot. Then click on this div.


Thanks for your help.

Ken Soh

unread,
Jan 10, 2018, 10:35:07 PM1/10/18
to CasperJS
(replied you via GitHub)
Reply all
Reply to author
Forward
0 new messages