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

On Wed, 10 Apr, 2019, 9:50 PM Titus Fortner, <[email protected]> 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, <[email protected]> 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.
>>>
>>> [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.
>>>
>> --
> --
> 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.
>

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