plaidshirt plaidshirt -3 years ago 147
Java Question

Execute WebDriver based tests without browser focus

There is a test written in

, which I execute from
IntelliJ IDEA
and opens a
. It uses some files from local machine to upload those and then receive too some files.
In this case browser window needs permanent focus, otherwise it is not working, can't select the necessary files. I would like to use machine during test is running, because test is long-running.
How could I execute it without browser focus?

Answer Source

I think I understand what you are trying to achieve.

Try to use non GUI browsers like PhantomJS or HtmlUnit and How to implement PhantomJS with Selenium WebDriver using java

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download