locked
How to login website without user interaction - Using c# console application code? RRS feed

  • Question

  • User2003675111 posted

    Dear All,

    Can we login without providing user name and password by user ?

    I would like to insert user name ,password and click on webform's  login button using c# code only, No user interaction.

    Thanks in advance.

    Monday, June 8, 2020 5:50 AM

All replies

  • User-719153870 posted

    Hi Neeraj Yadav,

    Are you trying to implement "Remeber Me" in your webform project? If so, please check this sample using cookie to achieve it.

    Or if you just want to create a console app to make the log in process programmatically and automatically, i think this could conflict with the security policy which makes it not legal.

    Best Regard,

    Yang Shen

    Monday, June 8, 2020 6:57 AM
  • User2003675111 posted

    just want to create a console app to make the log in process programmaticalLy and automatically.

    Monday, June 8, 2020 7:16 AM
  • User-719153870 posted

    Hi Neeraj Yadav,

    Sorry i mentioned this is not available.

    After researching, it seems the webdriver could implement this, please check How To Automate Your Login Process.

    Create a console app and use webdriver to automate login.

    Best Regard,

    Yang Shen

    Monday, June 8, 2020 9:44 AM