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 1,574 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,300 points
1,716 views
+1 vote
1 answer

Pressing "ENTER" in Instagram search box Python Selenium

driver.get("https://www.instagram.com/explore/tags/" + hashtag + "/") You will not ...READ MORE

answered Nov 5, 2020 in Python by vinnie Irvine

reshown Nov 5, 2020 by Sirajul 1,969 views
0 votes
0 answers
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,422 views
0 votes
1 answer
0 votes
2 answers

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,500 points
13,649 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP