The --window-position arguments should be without a space - eg:

args = ['--window-position=-3000,0']
browser = Watir::Browser.new :chrome, options: {args: args}

Note that this is just positioning it off-screen; not actually minimizing.

Justin


On Wednesday, April 10, 2019 at 12:33:41 PM UTC-4, NaviHan wrote:
>
> Tried this, browser didnt minimize
>
>   args = ['--allow-running-insecure-content --window-position=-3000, 0']
>   browser = Watir::Browser.new :chrome, options: {args: args}
>
> Titus is this correct?
> On Wednesday, 10 April 2019 22:42:13 UTC+10, watirQ wrote:
>>
>> Experts 
>>
>> Each time when use .goto or open a new tab, the browser window will lump 
>> to the frontend of the screen. How to keep the Watir browser run on the 
>> backend, so that will  not interrupt other works
>>
>> Thanks
>>
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to