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 8661247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:27:07+00:00 2026-06-12T16:27:07+00:00

In the following application, I used HTML agility pack to extract the HTML document

  • 0

In the following application, I used HTML agility pack to extract the HTML document from the given url. Now I need to know how can i use the element ids from the HTML document and enter text in the fields and in the end hit SUBMIT button to submit the form.

protected void Button1_Click(object sender, EventArgs e)
{
    string Url = "https://something.com/login.asp"; 
    HtmlWeb web = new HtmlWeb(); 
    HtmlAgilityPack.HtmlDocument doc = web.Load(Url);
}

The current application automate the web data entry.

  • 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-12T16:27:09+00:00Added an answer on June 12, 2026 at 4:27 pm
    protected void Button1_Click(object sender, EventArgs e)         
    {
        IWebDriver driver = 
            new InternetExplorerDriver(@"C:\.....\IEDriverServer_Win32_2.25.2"); 
    
        driver.Navigate().GoToUrl("https://website.com/login.asp");
    
        // Find the text input element by its name
        // username
    
        IWebElement name_ID = driver.FindElement(By.Name("name_ID"));
        name_ID.SendKeys("xyzw");
    
        // password
        IWebElement pwd_PW = driver.FindElement(By.Name("pwd_PW"));
        pwd_PW.SendKeys("fasdfasfdasdf");
    
        // submit login form
        IWebElement sSubmit = driver.FindElement(By.Name("submit"));
        submit.Submit();
        System.Threading.Thread.Sleep(5000);
        driver.Quit();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am migrating application from JSF1.2/MyFaces+Facelets TO JSF2.1/MyFaces. I have following template which used
In my application I receive the following error: The context cannot be used while
to send a message in my application in android i have used the following
Up to this point, I have used the following code to restrict the application
I defined an application which is only used from my other application. So I
I have an application that used another php cms system, which I am now
I need to develop an application that will periodically check data from a XML
I have created mvc3 application. where using EF to populate dropdownlist from tables. now
I have used the following code in a number of applications to load .DLL
I have the following Application tag code in my widget: <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:local=* width=100%

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.