+ Reply to Thread
Results 1 to 8 of 8

Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" popup

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" popup

    Hey guys,

    I have an Excel VBA script that uses Selenium Basic ChromeDriver to login and navigate a website.

    I'm trying to make it so that Chrome's popup prompts in the right corner asking either to "Save password" or "Restore Pages" don't appear.

    Save.jpg
    Restore.jpg

    My attempt is below, but it isn't working for either case.

    Please Login or Register  to view this content.
    Unfortunately still always getting the "Save Password" prompt. And the "Restore pages?" prompt continues to happen after cases where ChromeDriver is stopped suddenly in the previous run.

    Any help is appreciated!

  2. #2
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    What is missing is the web site where you are trying to log in. You have to inject the html there with your login credentials in order to make it work.

  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    Hi kaasplankje,

    I do have additional code below that, which logs into the website successfully.

    It's after the login occurs that the "Save password?" box pops up. The "Restore pages?" happens right when ChromeDriver launches.

    It's just that I'm assuming whatever code is going to prevent those from showing up will be in the ChromeDriver initialization section prior to the

    Please Login or Register  to view this content.
    and onwards.

    Hopefully that makes sense.

  4. #4
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    The issue is that selenium opens a sandboxed version of chrome, so it does not behave as you may be used to.
    I still believe this could be solved but then at least provide the name of the web site. Credentials not needed.

  5. #5
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    Definitely appreciate your help! The link where the login occurs is https://www.overstock.com/login

  6. #6
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    Following code does the trick for me:

    Please Login or Register  to view this content.
    Last edited by kaasplankje; 12-02-2022 at 04:16 PM.

  7. #7
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    Hmm, does that not give you the Chrome-generated "Save password" box in the top right after the login completes?

    I have to clear cookies from time to time for my application, so just hitting "Never" once doesn't stop it.

    Hoping there's some additional code that can make it just never prompt to save the password.

  8. #8
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: Excel VBA Selenium Basic ChromeDriver - Removing "Save Password" and "Restore Pages" p

    Perhaps you are using an extension in chrome that causes this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Create a Command Button to "Save As" and "Close" an Excel Workbook
    By thedunna in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2013, 05:38 PM
  7. save and restore "Workbook Menu Bar" & "Cell" menus
    By Jeff Higgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2005, 10:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1