Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8381325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:40:29+00:00 2026-06-09T16:40:29+00:00

I have written a small application that needs to log in to a website

  • 0

I have written a small application that needs to log in to a website to perform some actions.
The problem is that whenever I try to set the password field on the website it doesn’t accept the password.

I have found a way around this by using the SendKeys function. The problem with that is that it requires focus and the program requires to run in the background.

Is there a way to do this?

Here is an example of how you’d set the Username Field:

WebBrowser.Document.GetElementById("field-username").SetAttribute("value", "UserName")

Any help would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:40:31+00:00Added an answer on June 9, 2026 at 4:40 pm

    The answer to this question is as follows:

    WebBrowser.Document.GetElementById("field-loginFormPassword").SetAttribute("maxLength", "20")
    WebBrowser.Document.GetElementById("field-loginFormPassword").SetAttribute("value", "yourpassword")
    

    By changing the “maxlength” value it allows you to set the “value” to the desired text and then you can submit the Form and it will accept it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small client/server application, written in C, that needs to authenticate with
I have a small command-line application written in C that acts as a wrapper/launcher
I have a small application written in c# as a console app that I
I have a small application that I have written that uses the MVP pattern
I have a small report/logging application written in C#.NET 4.0 and WPF that I
I have written a small .net Windows Forms application. And now I decided to
I have a small application written in PHP and a mysql database hosted on
We have a small daemon application written in C for a couple of various
I've written up a small console utility. Throughout the application, I have used slf4j/log4j
I have written a small chat app that uses mysql + php to facilitate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.