or
MyPageManager.MyPage1.MyPageHeader.Logout.Click();I am trying to run Telerik Framework Test using NUnit (through visual studio). And I need to initialize some variables before the tests run. I am using [TestFixtureSetUp] and [TestFixtureTearDown] for this. But it seems that these are being executed for each and every [Test] Method ([TestFixtureSetUp] and [TestFixtureTearDown] should be only once!) [TestFixtureSetUp] public void MyTestInitialize() { SetUpAndTearDown setup = new SetUpAndTearDown(); myDriver = setup.SetupTestEnvironment("ie"); } [Test] public void Grid() { //code for gird } [Test] public void Box() { //code for Box } [TestFixtureTearDown] public void CleanUp() { SetUpAndTearDown teardown = new SetUpAndTearDown(); teardown.TearDownTestEnvironment(myDriver); } I am using NUnit - 2.6.2 Visul studio 2010 ultimate Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: System.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.Silverlight.ObjectSerializer' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.Reflection.Assembly.GetTypes() at ArtOfTest.WebAii.Silverlight.ObjectSerializer.InitKnownTypes() at ArtOfTest.WebAii.Silverlight.ObjectSerializer..cctor() --- End of inner exception stack trace --- at ArtOfTest.WebAii.Silverlight.ObjectSerializer.Serialize(Type t, Object o) at ArtOfTest.WebAii.Silverlight.SilverlightCommand.AsString() at ArtOfTest.WebAii.Wpf.WpfProxy.CreateCommand(SilverlightCommand SlCommand) at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd) at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees() at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees() at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot() at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo) at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)FindParamCollection
class in webaii1 and for webaii 2 it says this class has been deprecated, use
FindExpressionCollection<T>.
I am not able to find the implemenation details of this class in the help document http://www.artoftest.com/support/webaii/WebAii_2.0_API/Index.aspx. Can you please help?
int i = 1;
foreach (KendoGridDataItem row in kgrid.grid.DataItems)
{
if (row.Cells[0].TextContent == "Northwoods Cranberry Sauce")
{
row.Cells[1].Click();
HtmlInputText text = ActiveBrowser.Find.ByName<HtmlInputText>("UnitPrice");
row.Cells[1].Click();
text.Text = "243344";
string TextVal = kgrid.grid.DataItems[i-1][1].TextContent;
row.Cells[1].Click();
break;
}
i++;
}
Settings mySettings = new Settings();mySettings.Web.DefaultBrowser = browser; Manager myManager = new Manager(mySettings); myManager.Start(); myManager.LaunchNewBrowser(); myManager.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(myManager.ActiveBrowser, "username", "password", DialogButton.OK));myManager.DialogMonitor.Start();myManager.ActiveBrowser.NavigateTo("url"); Element linkSearch = myManager.ActiveBrowser.Find.ByContent("Search");myManager.ActiveBrowser.Actions.Click(linkSearch); Element editSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_txtSearch");myManager.ActiveBrowser.Actions.SetText(editSearch, "Example");Element radioCompanies = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_rbtnListFilterType_0");myManager.ActiveBrowser.Actions.Check(radioCompanies, true);Element buttonSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain__btnSearch");myManager.ActiveBrowser.Actions.Click(buttonSearch);Element linkResult = myManager.ActiveBrowser.Find.ByContent("Example");myManager.ActiveBrowser.Actions.Click(linkResult);myManager.Dispose();