Selenium google chrome not loading until pressing refresh button python

0 votes

I have a problem which I don't understand. This is what I have:

    options = webdriver.ChromeOptions()
    options.add_extension(r"C:\Users\x\OneDrive\Desktop\crxSolver.crx")
    driver = webdriver.Chrome(r'C:\Users\x\OneDrive\Desktop\chromedriver.exe', options=options)
    driver.get('https://www.google.com')

The problem is when I add an extension google chrome is not refreshing. What I mean is when I run what I have written, it will stay in:://data and when I press the refresh button on the top left corner it is going to my actual page. This is where I don't understand it. If I run my program without the option add extension it will go directly to the page that I want. Also, a guy tried to help me and he said that it isn't an error in the code. I have tried many different websites but it isn't working. I have the same version of chromedriver and google chrome.

May 17 in Python by A
• 120 points

edited May 17 by Omkar 15 views
Can you please share exactly what error is displayed in your console and also if you could share your complete code? It would help in better understanding of your problem.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
3 answers
0 votes
1 answer

Python 'If not' syntax

Yes, if bar is not None is ...READ MORE

answered Aug 1, 2018 in Python by Priyaj
• 56,120 points
27 views
0 votes
1 answer

'python' is not recognized as an internal or external command

I have met same issue when I ...READ MORE

answered Aug 24, 2018 in Python by Priyaj
• 56,120 points
64 views
0 votes
1 answer

Python `if x is not None` or `if not x is None`?

There's no performance difference, as they compile ...READ MORE

answered Sep 3, 2018 in Python by Priyaj
• 56,120 points
95 views
0 votes
1 answer

How to write "not equal" in python?

The keywords is and is not are ...READ MORE

answered Sep 17, 2018 in Python by SayantiniDeb
• 200 points
40 views
0 votes
1 answer

Can't Click an Element in Python Selenium After Successfully Finding It

I've encountered this problem of not being ...READ MORE

answered Oct 4, 2018 in Python by Priyaj
• 56,120 points
612 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
25 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,030 points
72 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.