pop-up that appears every time I open chrome browser, that's why I need to disable chromeOptions

1,036 views
Skip to first unread message

Maksood Khan

unread,
Apr 11, 2018, 6:41:41 AM4/11/18
to robotframework-users
I launching chrome browser but before it launch I get a pop up with message as Loading of unpacked extension

Anne kootstra

unread,
Apr 11, 2018, 1:40:21 PM4/11/18
to robotframework-users
You may want to investigate the different arguments that can be used to start Google Chrome. I suspect that in your case this might help: 

    ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
   
Call Method    ${chrome options}    add_argument    --disable-extensions            
   
Create Webdriver    Chrome    chrome_options=${chrome options}
   
   
Go To    ${url}




Op woensdag 11 april 2018 12:41:41 UTC+2 schreef Maksood Khan:

Tatu Aalto

unread,
Apr 11, 2018, 2:06:40 PM4/11/18
to koot...@gmail.com, robotframework-users
Ugh

Also it might be useful to update to the latest Selenium and ChromeDriver versions.

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Maksood Khan

unread,
Apr 12, 2018, 2:10:24 AM4/12/18
to aalto...@gmail.com, koot...@gmail.com, robotframework-users
Thanks for providing solutions, but I tried both the methods still I am getting pop up.

PFA snap for more details.

On Wed, Apr 11, 2018 at 11:36 PM, Tatu Aalto <aalto...@gmail.com> wrote:
Ugh

Also it might be useful to update to the latest Selenium and ChromeDriver versions.

-Tatu
Send from my mobile
On Wed, 11 Apr 2018, 20:40 Anne kootstra, <koot...@gmail.com> wrote:
You may want to investigate the different arguments that can be used to start Google Chrome. I suspect that in your case this might help: 

    ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
   
Call Method    ${chrome options}    add_argument    --disable-extensions            
   
Create Webdriver    Chrome    chrome_options=${chrome options}
   
   
Go To    ${url}




Op woensdag 11 april 2018 12:41:41 UTC+2 schreef Maksood Khan:
I launching chrome browser but before it launch I get a pop up with message as Loading of unpacked extension

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
PopUP_Chrome.png

Tatu Aalto

unread,
Apr 12, 2018, 10:04:58 AM4/12/18
to Maksood Khan, koot...@gmail.com, robotframework-users
Ugh

That looks like something which is caused by windows settings, most likely by your IT has a group policy that prevents such things. Please consult your IT, or someone who is administrator, to remove such things.


-Tatu
Send from my mobile
On Thu, 12 Apr 2018, 09:10 Maksood Khan, <himaks...@gmail.com> wrote:
Thanks for providing solutions, but I tried both the methods still I am getting pop up.

PFA snap for more details.
On Wed, Apr 11, 2018 at 11:36 PM, Tatu Aalto <aalto...@gmail.com> wrote:
Ugh

Also it might be useful to update to the latest Selenium and ChromeDriver versions.

-Tatu
Send from my mobile
On Wed, 11 Apr 2018, 20:40 Anne kootstra, <koot...@gmail.com> wrote:
You may want to investigate the different arguments that can be used to start Google Chrome. I suspect that in your case this might help: 

    ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
   
Call Method    ${chrome options}    add_argument    --disable-extensions            
   
Create Webdriver    Chrome    chrome_options=${chrome options}
   
   
Go To    ${url}




Op woensdag 11 april 2018 12:41:41 UTC+2 schreef Maksood Khan:
I launching chrome browser but before it launch I get a pop up with message as Loading of unpacked extension

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

Alex G

unread,
Apr 20, 2018, 11:29:25 AM4/20/18
to robotframework-users
I had the same issue and got around it with the following.

Use a Python keyword to set your Chrome options... I originally had more options in here, but stripped it down to the line that actually stops this pop up from displaying.

def set_chrome_options():
    options = webdriver.ChromeOptions()
    options.add_experimental_option("useAutomationExtension", False)
    return options


Then you can create a RF keyword to use this like so:

Open Chrome Browser
    [Documentation]    Open an instance of Chrome using options defined in our Python keyword 'Set Chrome Options'.
    [Arguments]    ${url}
    ${chrome_options}=    Set Chrome Options
    Create Webdriver    Chrome    chrome_options=${chrome_options}
    Goto    ${url}

Apparently setting that option will disable some features, but it didn't affect me in any negative way.

On Thursday, April 12, 2018 at 2:10:24 AM UTC-4, Maksood Khan wrote:
Thanks for providing solutions, but I tried both the methods still I am getting pop up.

PFA snap for more details.
On Wed, Apr 11, 2018 at 11:36 PM, Tatu Aalto <aalto...@gmail.com> wrote:
Ugh

Also it might be useful to update to the latest Selenium and ChromeDriver versions.

-Tatu
Send from my mobile
On Wed, 11 Apr 2018, 20:40 Anne kootstra, <koot...@gmail.com> wrote:
You may want to investigate the different arguments that can be used to start Google Chrome. I suspect that in your case this might help: 

    ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
   
Call Method    ${chrome options}    add_argument    --disable-extensions            
   
Create Webdriver    Chrome    chrome_options=${chrome options}
   
   
Go To    ${url}




Op woensdag 11 april 2018 12:41:41 UTC+2 schreef Maksood Khan:
I launching chrome browser but before it launch I get a pop up with message as Loading of unpacked extension

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages