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, 2019 in Python by A
• 150 points

edited May 17, 2019 by Omkar 259 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
1 answer

Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

Try installing libpng You can do it with ...READ MORE

answered May 31, 2019 in Python by SDeb
• 13,230 points
124 views
0 votes
3 answers

Python Selenium best tutorials for beginners

Hope this will help you...Python Tutorial READ MORE

answered Feb 11, 2019 in Python by aldrinjohn
• 140 points
1,491 views
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
• 57,510 points
66 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 548 views
0 votes
0 answers
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,510 points
1,548 views