How to use a specific chrome profile in selenium?

0 votes
Is there a way in chrome to use a specific profile such that the current profile doesn't get affected.

If yes, then can someone tell me the way of doing it?

Thank you in advance.
Dec 24, 2018 in Selenium by Anjali
• 2,900 points
388 views

1 answer to this question.

0 votes

User profiling is the term used for this and is a good practice of keeping the testing and general environment separate.

Yes this is available in chrome aswell.

You can create another profile for your chrome driver to access it.

ChromeOptions option = new ChromeOptions();
option.addArguments("user-data-dri=C:\\Users\\Your path to user\\Roaming\\Google\\Chrome\\User Data");
WebDriver driver = new ChromeDriver(option);

Hope this helps.

answered Dec 24, 2018 by Shuvodip

Related Questions In Selenium

0 votes
1 answer

How to use link as a locator to find element in selenium?

Hello @Jino, its amazing to explore ways ...READ MORE

answered Dec 21, 2018 in Selenium by Nabarupa
66 views
0 votes
1 answer
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,050 points
248 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
621 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
243 views
0 votes
5 answers
0 votes
1 answer