Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chrome instead of IE
#1
Hi all,

i just read a little bit about the webbrowser and tried open google for example. so i did:
import webbrowser
webbrowser.open('https://www.google.com')
it works, but it opens Internet explorer. How do i make it open my default browser "Chrome", do i need to change some settings?

thanks in advance
Reply
#2
use the register method to change browser
see: https://docs.python.org/3/library/webbro...r.register
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I get rid of "Chrome is being controlled by automated test software"? jetBlack 2 12,538 Jul-21-2022, 08:31 AM
Last Post: Benjamin112
  Expose chrome extension buttons to Python robertjaxe 2 2,312 May-12-2020, 07:52 PM
Last Post: robertjaxe
  Selenium/chrome console WiPi 4 5,826 Apr-12-2020, 11:45 AM
Last Post: WiPi
  Headless Chrome: How to login into a webpage? amandacstr 1 4,228 Feb-06-2020, 02:19 AM
Last Post: metulburr
  Interfacing Google Chrome & Python akornrumpf 5 3,991 Mar-16-2019, 10:20 PM
Last Post: Larz60+
  Cannot open Chrome gahhon 3 3,564 Jan-26-2019, 04:56 AM
Last Post: snippsat
  selenium - chrome crashes when chrome is running. RvBVakama 4 15,177 Dec-16-2018, 06:32 PM
Last Post: metulburr
  Alternatives to Chrome WebDriver? chisox721 4 7,093 Apr-23-2018, 06:24 PM
Last Post: chisox721
  Selenium chrome driver not returning solution Prince_Bhatia 0 3,530 Jul-06-2017, 06:40 AM
Last Post: Prince_Bhatia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020