It would still bring the screen to the front when alert appears.

On Wed, 10 Apr, 2019, 9:50 PM Titus Fortner, <titusfort...@gmail.com> wrote:

> You can set it up to move off the screen when it opens by passing in the
> args to the ChromeOptions class:
> https://peter.sh/experiments/chromium-command-line-switches/#window-position
>
> it probably will still steal focus momentarily even if it isn't on top of
> your screen,
>
>
>
> On Wednesday, April 10, 2019 at 9:13:41 AM UTC-5, rajagopalan madasami
> wrote:
>>
>> But it will still shows up for some seconds.
>>
>> On Wed, 10 Apr, 2019, 7:42 PM NaviHan, <hishin...@gmail.com> wrote:
>>
>>> Try this after you open the browser
>>> browser.window.move_to(-3000, 0)
>>>
>>> This will minimize the window
>>>
>>> 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.
>>>
>>> watir-...@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-...@googlegroups.com
>>> ---
>>> 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 watir-...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> --
> 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.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> 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 watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to