SlideShare a Scribd company logo
OPEN URL IN CHROME
BROWSER FROM PYTHON
ZAHRA WAHEED
4537
MORNING –B
OPEN URL IN CHROME BROWSER
• YOU CAN OPEN URL IN A BROWSER AND ALSO SPECIFY TO OPEN THE URL IN
CHROME BROWSER SPECIFICALLY.
• TO OPEN URL IN A BROWSER, WE WILL USE WEBBROWSER PYTHON MODULE.
PROCESS
• REGISTER THE BROWSER TYPE NAME USING WEBBROWSER.REGISTER(). ALSO
PROVIDE THE BROWSER EXECUTABLE FILE PATH.
• GET THE CONTROLLER OBJECT FOR THE BROWSER USING WEBBROWSER.GET()
AND OPEN URL USING OPEN().
EXAMPLE 1: OPEN URL IN GOOGLE CHROME
• IMPORT WEBBROWSER
• URL = 'HTTPS://WWW.GOOGLE.COM'
• WEBBROWSER.REGISTER('CHROME',
• NONE,
• WEBBROWSER.BACKGROUNDBROWSER("C://PROGRAM FILES
(X86)//GOOGLE//CHROME//APPLICATION//CHROME.EXE"))
• WEBBROWSER.GET('CHROME').OPEN(URL)
• WEBBROWSER.GET('CHROME').OPEN(URL) OPENS A NEW WINDOW IF
ALREADY NOT OPENED, OR OPENS IN A NEW TAB IF CHROME IS ALREADY
OPENED IN YOUR PC.
OPEN URL IN A NEW GOOGLE CHROME WINDOW
• IMPORT WEBBROWSER
• URL = 'HTTPS://WWW.YOUTUBE.COM'
• WEBBROWSER.REGISTER('CHROME',
• NONE,
• WEBBROWSER.BACKGROUNDBROWSER("C://PROGRAM FILES
(X86)//GOOGLE//CHROME//APPLICATION//CHROME.EXE"))
• WEBBROWSER.GET('CHROME').OPEN_NEW(URL)
Open URL in Chrome Browser from Python.pptx

More Related Content

PPT
PHP-04-Forms PHP-04-Forms PHP-04-Forms PHP-04-Forms
PPT
Chapter 5 SE Chapter 5 SE.pptChapter 5 SE.ppt
PPTX
Ch 14_Web Mining.pptxCh 14_Web Mining.pptx
PPTX
Lecture 5 & 6 Advance CSS.pptx for web
PPT
php introduction to the basic student web
PPTX
ch 3 of C# programming in advanced programming
PPTX
Responsive Web Designing for web development
PPTX
Color Theory for web development class for students to understand good websites
PHP-04-Forms PHP-04-Forms PHP-04-Forms PHP-04-Forms
Chapter 5 SE Chapter 5 SE.pptChapter 5 SE.ppt
Ch 14_Web Mining.pptxCh 14_Web Mining.pptx
Lecture 5 & 6 Advance CSS.pptx for web
php introduction to the basic student web
ch 3 of C# programming in advanced programming
Responsive Web Designing for web development
Color Theory for web development class for students to understand good websites

More from ZahraWaheed9 (7)

PPT
C# wrokig based topics for students in advanced programming
PPT
CSharp POWERPOINT SLIDES C# VISUAL PROGRAMMING
PPT
visual programming GDI presentation powerpoint
PPT
Visual programming Chapter 3: GUI (Graphical User Interface)
PPTX
Review Presentation on develeopment of automated quality
PPTX
Cross-Modal Scene Understanding presntation
PPTX
Web Minnig and text mining presentation
C# wrokig based topics for students in advanced programming
CSharp POWERPOINT SLIDES C# VISUAL PROGRAMMING
visual programming GDI presentation powerpoint
Visual programming Chapter 3: GUI (Graphical User Interface)
Review Presentation on develeopment of automated quality
Cross-Modal Scene Understanding presntation
Web Minnig and text mining presentation
Ad

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Lesson notes of climatology university.
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Lesson notes of climatology university.
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Computing-Curriculum for Schools in Ghana
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
2.FourierTransform-ShortQuestionswithAnswers.pdf
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
Ad

Open URL in Chrome Browser from Python.pptx

  • 1. OPEN URL IN CHROME BROWSER FROM PYTHON ZAHRA WAHEED 4537 MORNING –B
  • 2. OPEN URL IN CHROME BROWSER • YOU CAN OPEN URL IN A BROWSER AND ALSO SPECIFY TO OPEN THE URL IN CHROME BROWSER SPECIFICALLY. • TO OPEN URL IN A BROWSER, WE WILL USE WEBBROWSER PYTHON MODULE.
  • 3. PROCESS • REGISTER THE BROWSER TYPE NAME USING WEBBROWSER.REGISTER(). ALSO PROVIDE THE BROWSER EXECUTABLE FILE PATH. • GET THE CONTROLLER OBJECT FOR THE BROWSER USING WEBBROWSER.GET() AND OPEN URL USING OPEN().
  • 4. EXAMPLE 1: OPEN URL IN GOOGLE CHROME • IMPORT WEBBROWSER • URL = 'HTTPS://WWW.GOOGLE.COM' • WEBBROWSER.REGISTER('CHROME', • NONE, • WEBBROWSER.BACKGROUNDBROWSER("C://PROGRAM FILES (X86)//GOOGLE//CHROME//APPLICATION//CHROME.EXE")) • WEBBROWSER.GET('CHROME').OPEN(URL)
  • 5. • WEBBROWSER.GET('CHROME').OPEN(URL) OPENS A NEW WINDOW IF ALREADY NOT OPENED, OR OPENS IN A NEW TAB IF CHROME IS ALREADY OPENED IN YOUR PC.
  • 6. OPEN URL IN A NEW GOOGLE CHROME WINDOW • IMPORT WEBBROWSER • URL = 'HTTPS://WWW.YOUTUBE.COM' • WEBBROWSER.REGISTER('CHROME', • NONE, • WEBBROWSER.BACKGROUNDBROWSER("C://PROGRAM FILES (X86)//GOOGLE//CHROME//APPLICATION//CHROME.EXE")) • WEBBROWSER.GET('CHROME').OPEN_NEW(URL)