Watir chrome browser window in foreground

Z

zak

Hello!

When I create an instance of Watir::Browser

br = Watir::Browser.new :chrome, :profile => profile

and for instance do some web crawling with it I have the problem, that
the chrome window becomes the foreground window whenever a new url is
loaded.

This prevents me from working.
So: Is it possible to keep the window in background or make it
invisible?

Thanks!
 
D

Daniel Doherty

Take a look at the headless gem. Runs the browser with no window under
Xvfb.

Regards,
 
U

u.gotzes

Sounds good.
Problem: I have to interact at a certain point.
So "no window at all" is no solution.

Thank you anyway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top