function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prabhakar BalgeriPrabhakar Balgeri 

How to login into Salesforce application using selenium webdriver?

When I try to login using the Firefox browser, it asks every time a verification code.
Every time it's clear the cookies of browser.
Please help me on this
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Prabhakar,

To login into Salesforce application using selenium web driver may I request you to please refer the below link for reference. Hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar
Prabhakar BalgeriPrabhakar Balgeri
Hi Rahul,

Everytime Im running a script locally I get a two step verification screen. I have done the verification and But it's asking again and again verification code.

Regards,
Prabhakar.User-added image
Kristen Murray 16Kristen Murray 16
Hi,
You can avoid the two step verification screen by configuring your org to trust the IP address you are using.  Setup-->Security-->Network Access