This is a migrated thread and some comments may be shown as answers.

[Solved] Manager.launchbrowser

2 Answers 24 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
siva kp
Top achievements
Rank 1
siva kp asked on 10 Nov 2009, 06:07 AM
base {System.SystemException} = {"There are no active browsers. Please make sure you have atleast one browser instance launched for automation using Manager.LauncheNewBrowser()."}

2 Answers, 1 is accepted

Sort by
0
siva kp
Top achievements
Rank 1
answered on 10 Nov 2009, 06:09 AM
any one help on resolving the issue with the below :

base {System.SystemException} = {"There are no active browsers. Please make sure you have atleast one browser instance launched for automation using Manager.LauncheNewBrowser()."}
0
Missing User
answered on 10 Nov 2009, 04:03 PM
Hi siva,

Looks like a browser would just need to be launched. Here is a quick test method that should work in IE, but your can change the arguenment to BrowserType.FireFox or BrowserType.Safari:

[TestMethod]
public void SampleWebAiiTest()
{
    // Launch a browser instance
    Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
    // The active browser
    ActiveBrowser.NavigateTo("http://www.google.com");
    // Find the google search box and set it to "ArtOfTest";
    Find.ByName<HtmlInputText>("q").Text = "ArtOfTest";
    // Click the Search button
    Find.ByName<HtmlInputSubmit>("btnG").Click();
    // Validate the search contain the 'ArtOfTest' text
    Assert.IsTrue(ActiveBrowser.ContainsText("ArtOfTest"));
}

All the best,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Telerik Testing Framework
Asked by
siva kp
Top achievements
Rank 1
Answers by
siva kp
Top achievements
Rank 1
Missing User
Share this question
or