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

  • Home
  • SEARCH
  • 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 7781121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:07:31+00:00 2026-06-01T19:07:31+00:00

I am using WATIN 2.1 with C#. Here is my Code // Should I

  • 0

I am using WATIN 2.1 with C#. Here is my Code

// Should I add something here like []
private void ProcessInkPresenter()
{
    String path = "http://localhost/index.asp?HOSTID=AD&USERID=&ALIAS=" + userName;
    Int32 startingRow = 1;
    using (var browser = new IE(path))
    {
        browser.AutoClose = true;
        try
        {
            try
            {
                browser.Image(Find.ByAlt("Use a password")).Click();
                browser.WaitForComplete(90);
                browser.TextField(Find.ByName("_MYPW")).TypeText(privateCurrentPassword);

                // the application keeps crashing in the line above
                // WatiN.Core.Exceptions.RunScriptException : RunScript failed
                //      ----> System.UnauthorizedAccessException : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

                browser.Image(Find.ByAlt("Verify password")).Click();
                browser.Link(Find.ByTitle("Change passwords")).Click();
                browser.TextField(Find.ByName("_NEWP1")).TypeText(privateNewPassword);
                browser.TextField(Find.ByName("_NEWP2")).TypeText(privateNewPassword);
                browser.Image(Find.ByName("SUBMIT-CHANGE")).Click();

I basically need to get this to work with Internet Explorer 7 and up on Windows XP.
Can you please help me with this?

I added the CRASH details in the code above

Thanks

  • 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-01T19:07:33+00:00Added an answer on June 1, 2026 at 7:07 pm

    Is the field found?

    var field = browser.TextField(Find.ByName("_MYPW"));
    if(field.Exists)
        field.TypeText(privateCurrentPassword);
    

    I had a similar issue trying to get an HTML5 input type email.
    It could also be other reasons watin can’t get to the field.

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

Sidebar

Related Questions

Okay, here's my problem: I'm using WatiN to navigate a website, but then a
I'm using WatIn - and have the current script: IE ie = new IE(http://www.google.co.il);
Using WatiN, Im facing some issues with FireFox FF = new FireFox (http://www.google.com); ,
i'm using Watin and i want to search in the page source (HTML), like
Using WatiN, I'm loading up http://maps.google.com/ All I want to do is right click
Using Watin, I'm trying to handle a confirm dialog box and tell watin to
I've been using WatiN as a testing tool for my current project. Besides the
We're using WatiN for testing our UI, but one page (which is unfortunately not
I'm using WatiN, NUnit and ReSharper to run my ASP.NET unit tests inside Visual
I'm using WatiN testing tool. Can I pass a key stroke (i.e., pressing a

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.