質問

Is it possible to take screenshots inside Chutzpah?

I can't seem to get to the underlying phantom object. I understand now looking through the chutzpahRunner.js that the test itself is called via page.open() so appears to be in a different scope.

In the end I'm hoping to diff svg elements similar to how PhantomCSS does it with casperjs.

I'm new to phantomjs / chutzpah so maybe I'm missing something obvious.

役に立ちましたか?

解決

From the co-ordinator of Chutzpah:

This is not something Chutzpah supports. Chutzpah is focused on running js tests. I think CasperJS is a better fit to what you are looking for.

Though it would be a cool feature, it's being discussed in the Chutzpah forum: Screenshots via phantomjs

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top