//this is the test code generated by selenium //****Paste test script here***** public override void RunTest() { selenium.Open(base.baseURL); quality.AreEqual("Garmin Product Updates for Kenwood", quality.GetTitle()); quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); ken.DeviceSelectionPage(); //comment: Select the same device like the one from the XML quality.Select("id=headUnitRegionFilter", "label=All"); quality.WaitForPageToLoad("30000"); quality.Select("id=headUnitRegionFilter", "label=North America"); quality.WaitForPageToLoad("30000"); quality.Click("link=DNX7180"); quality.WaitForPageToLoad("30000"); ken.ModelIdentificationPage(); //comment: click on "Read Media" button quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Scan Portable Media", quality.GetTitle()); for (int second = 0; second < 61; second++) { if (second >= 60) { quality.ErrorReport("timeout", CheckType.Warning); } try { if ("Media Scan" == quality.GetText("css=div.titleHeader-text")) { break; } } catch (Exception) { } Thread.Sleep(1000); } quality.AreEqual("Media Scan", quality.GetText("css=div.titleHeader-text")); quality.AreEqual("Scanning Your Portable Storage Device... Please wait", quality.GetText("id=messageText")); ken.DeviceInformationFoundPage(true); // comment: Click on the "Continue" button quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); ken.ProductUpdatesPage(true); // comment: Click on "Latest Map" button quality.Click("css=div.description > span"); quality.WaitForPageToLoad("30000"); //comment: Check the "Latest Map for Kenwood" ken.LatestMapForKenwoodPage(true); //comment: Click "Add to Cart" button without beeing logged-in quality.Click("css=a.button.left > span"); quality.WaitForPageToLoad("30000"); ken.ShoppingCartWithLatestMapToBuy(); // comment: Click "Update" button even if the QTY is disabled to be changed if (ken.IsQuantityEditable() == false) { failedcheck++; } else { passedcheck++; } quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); ken.ShoppingCartWithLatestMapToBuy(); }