BenThereSeveralTimes
Technical User
Hi,
My Desktop is working fine. My Laptop, however, has started generating an UnauthorizedAccessException when I run the following code:
using System;
using System.Collections.Generic;
using System.Text;
using WatiN.Core;
namespace WatiNGettingStarted
{
class Program
{
[STAThread]
static void Main(string[] args)
{
//try
//{
IE ie = new IE("C:/Documents and Settings/All Users/Documents/My PO/Blue.htm");
ie.Link(Find.ByText("Log On")).Click();
Console.WriteLine("After Log On Click");
//}
//catch (Exception ex)
//{
//Console.WriteLine("Fatal Error: " + ex.Message);
//Console.ReadLine();
//}
}
}
}
The code fails on the line:
ie.Link(Find.ByText("Log On")).Click();
Blue.htm is located on the shared drive.
I took a look at thread732-1094111, but didn't see an obvious solution.
I would appreciate any help
Thanks,
Ben
My Desktop is working fine. My Laptop, however, has started generating an UnauthorizedAccessException when I run the following code:
using System;
using System.Collections.Generic;
using System.Text;
using WatiN.Core;
namespace WatiNGettingStarted
{
class Program
{
[STAThread]
static void Main(string[] args)
{
//try
//{
IE ie = new IE("C:/Documents and Settings/All Users/Documents/My PO/Blue.htm");
ie.Link(Find.ByText("Log On")).Click();
Console.WriteLine("After Log On Click");
//}
//catch (Exception ex)
//{
//Console.WriteLine("Fatal Error: " + ex.Message);
//Console.ReadLine();
//}
}
}
}
The code fails on the line:
ie.Link(Find.ByText("Log On")).Click();
Blue.htm is located on the shared drive.
I took a look at thread732-1094111, but didn't see an obvious solution.
I would appreciate any help
Thanks,
Ben