public void CheckBrowserVersion()
{
WebBrowser wb = new WebBrowser();
Login login = CreateLoginObject();
if (wb.Version.Major == ie8)
{
DO something();
}
else if (wb.Version.Major == ie9)
{
Do Something();
}
else
{
Console.WriteLine("UnSupported Browser version");
}
}
{
WebBrowser wb = new WebBrowser();
Login login = CreateLoginObject();
if (wb.Version.Major == ie8)
{
DO something();
}
else if (wb.Version.Major == ie9)
{
Do Something();
}
else
{
Console.WriteLine("UnSupported Browser version");
}
}