How to load webpage using selenium webdriver in already running chrome browser using python|Selenium and python|How to load default chrome profile using selenium python|How to load same chrome profile everytime in selenium
English
Introduction
In this page you will get information about How can you load webpage using selenium webdriver in already running chrome browser using python.Explained both in ENGLISH and Hindi.
Note:-You should have chromedriver already installed in it.
SELENIUM
Selenium is a framework which allows us to access webpages and different websites using coding languages like pythom,java..etc.Generally it is used for automation processes.
Where can it be used?
It can be used for conducting 90% of the online works automatically in one click.It can cover a huge workspace from personal account login to Major business works.
Generally,In each execution the webdriver opens a new chrome profile/session.This creates problem when we want to access already logged-in profiles.
So,steps to do so are:
- Open command prompt.
- (In windows use "WINDOWS +R")
- Then Click Okay
- Open chrome file location
- Search for chrome using task bar
- RIGHT CLICK and Open file location
- If you get location of shortcut then again right click on the chrome shortcut and open file location
- Now Copy & Paste this code in cmd as shown in the image:-
- Hit "Enter ".You can see a new chrome window which will open everytime you do this.
- So to perform operations on this window
- Use the following code