Is there a way to use jsTestDriver in a headless state where it loads the browsers but does so headlessly (you can't see the browser) or it loads them minimized?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
You could use PhantomJS with JSTestDriver
First start JStestdriver in a command prompt:
Download and use the javascript that is used to capture the Phantom browser from here.
Output will be like:
Run your tests:
There is no way to configure JsTestDriver to open the browser minimized. And you have to open the browsers because they run the JavaScript code.
You can try to create a virtual monitor and open the browser there.
Under linux you can use xvfb for this, for example
should open the browser in a virtual window.