HuddleEng / PhantomCSS

Visual/CSS regression testing with PhantomJS
MIT License
4.72k stars 259 forks source link

[Question] How to see selector elements of a transferred page after click? #144

Closed nhufinney closed 8 years ago

nhufinney commented 8 years ago

Hi Jamescryer,

After click submit button of a signup form, browser will be transferred to a login successful page. However, casperjs and phantomjs do not see selector elements of the new transferred page. It can take a screenshot of the new transferred page but cannot see its selector elements. Would you please guide me how to set those selector elements of the new transferred page become visible? Thank you so much.

jamescryer commented 8 years ago

It should be able to find the elements. It's possibly a timing problem. Try invoking your PhantomCSS screenshots in the callback of a casper.wait

nhufinney commented 8 years ago

Awesome. Thank you so much