Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Watir chrome browser window in foreground

100 views
Skip to first unread message

zak

unread,
Oct 11, 2012, 7:28:02 AM10/11/12
to
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!

Daniel Doherty

unread,
Nov 3, 2012, 4:14:10 AM11/3/12
to
Take a look at the headless gem. Runs the browser with no window under
Xvfb.

Regards,

u.go...@gmail.com

unread,
Nov 7, 2012, 5:53:10 AM11/7/12
to
Sounds good.
Problem: I have to interact at a certain point.
So "no window at all" is no solution.

Thank you anyway
0 new messages