//this is the test code generated by selenium
        //****Paste test script here*****
        public override void RunTest()
        {
            selenium.Open(base.baseURL);
            Update_XML.WriteXML("DNX9980_XML");

            //quality.SetSpeed("1300");


            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=DNX9980HD");
            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());

            if (ken.CheckForTimeOut("Media Scan", "css=div.titleHeader-text", 61))
            {
                failedcheck++;
            }
            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 "Lates map" button
            quality.Click("css=div.description > span");
            quality.WaitForPageToLoad("30000");

            ken.LatestMapForKenwoodPage(true);

            //comment: Click on "Add to Cart" button
            quality.Click("css=a.button.left > span");
            quality.WaitForPageToLoad("30000");

            ken.UpdateRequieredPage();


            //comment: Click on the "Scan Portable Media"
            quality.Click("link=Scan Portable Media");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Model Identification", quality.GetTitle());
            quality.AreEqual("The model you selected requires identification using portable media", quality.GetText("css=div.titleHeader-text"));

            // comment: Click on the "Continue" button
            quality.Click("css=a.button > span");
            quality.WaitForPageToLoad("30000");

            quality.AreEqual("Scan Portable Media", quality.GetTitle());

            if (ken.CheckForTimeOut("Media Scan", "css=div.titleHeader-text", 61))
            {
                failedcheck++;
            }
            quality.AreEqual("Media Scan", quality.GetText("css=div.titleHeader-text"));
            quality.AreEqual("Scanning Your Portable Storage Device... Please wait", quality.GetText("id=messageText"));

            for (int second = 0; second < 61; second++)
            {
                if (second >= 60)
                {
                    quality.ErrorReport("timeout", CheckType.Warning);
                }
                try
                {
                    if ("Device Information Found" == quality.GetText("css=div.titleHeader-text"))
                    {
                        break;
                    }
                }
                catch (Exception)
                { }
                Thread.Sleep(1000);
            }
            quality.AreEqual("Device Found", quality.GetTitle());
            quality.AreEqual("Device Information Found", quality.GetText("css=div.titleHeader-text"));

            // comment: Click on the "Continue" button
            quality.Click("css=a.button > span");
            quality.WaitForPageToLoad("30000");
            quality.IsTrue(Regex.IsMatch(quality.GetTitle(), "Product Updates for Kenwood .*"));
            quality.IsTrue(Regex.IsMatch(quality.GetText("css=div.titleHeader-text"), "Product Updates for Kenwood .*"));

            // comment: Click on "Lates map" button
            quality.Click("css=div.description > span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Download: City Navigator® North America NT 2012 Map Update for Kenwood", quality.GetTitle());
            quality.IsTrue(Regex.IsMatch(quality.GetText("css=div.titleHeader-text"), "(DNX|KNA-)(\\d{4})(.*)"));

            //comment: Click on "Add to Cart" button
            quality.Click("css=a.button.left > span");
            quality.WaitForPageToLoad("30000");

            ken.UpdateRequieredPage();

            //comment: CLick on "Software Updates" link
            quality.Click("link=Software Updates");

            Thread.Sleep(2000);

            quality.SelectWindow("Software Update");

            quality.AreEqual("Software Update", quality.GetText("css=div.titleHeader-text"));
            quality.AreEqual("Kenwood Receiver Software for DNX9980HD", quality.GetText("css=p.header"));
            quality.AreEqual("« Back to Updates", quality.GetText("css=a.button > span"));
            quality.AreEqual("Get Latest Navigation Software", quality.GetText("css=div.softwareUpdate > a.button > span"));
        }
        //this is the test code generated by selenium
        //****Paste test script here*****
        public override void RunTest()
        {
            selenium.Open(base.baseURL);
            Update_XML.WriteXML("DNX7180_XML");

            //TheKenwood_ModelTest: DNX4210DAB iD: 1011105504

            Update_XML.XMLEdit("Id", "1011105504");

            selenium.SetSpeed("1300");

            quality.AreEqual("Garmin Product Updates for Kenwood", quality.GetTitle());
            quality.Click("css=a.button > span");
            quality.WaitForPageToLoad("30000");

            ken.DeviceSelectionPage();

            quality.Select("id=headUnitRegionFilter", "label=All");
            quality.WaitForPageToLoad("30000");
            quality.Select("id=headUnitRegionFilter", "label=Europe");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Select a Model", quality.GetTitle());

            //comment: Select the same device like the one from the XML
            quality.Click("link=DNX4210DAB");
            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());

            if (ken.CheckForTimeOut("Media Scan", "css=div.titleHeader-text", 61))
            {
                failedcheck++;
            }
            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_NoUpdates();

            // comment: Click on "Real-Time Traffic" button
            quality.Click("css=a.updatesLink > div.productUpdate > div.description > div.header");
            quality.WaitForPageToLoad("30000");

            //comment: Check the "Traffic subscription for Kenwood"
            ken.TrafficSubscriptionPage();

            //comment: Click on the first traffic subscription (North America)
            quality.Click("css=div.text");
            quality.WaitForPageToLoad("30000");

            ken.TrafficServicesForkenwoodPage();

            //comment: Click "Add to Cart" button without beeing logged-in
            quality.Click("css=a.button.left > span");
            quality.WaitForPageToLoad("30000");

            ken.SignInPage();

            quality.Type("id=username", username);
            quality.Type("id=password", password);
            quality.Click("css=a.button");
            quality.WaitForPageToLoad("30000");

            //check if the only the traffic receiver text box is display for this kind of device
            ken.TrafficReceiverOnlyPage();

            //comment:  do not enter any value and press the Continue btn
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("Traffic Receiver ID is required", quality.GetText("css=ul.error > li"));

            //comment: special characters for traffic receiver ID
            quality.Type("id=trafficReceiverId", "!@#$%@@%$$#@!$%#@!!$%$");
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("Please enter a valid Traffic Receiver ID", quality.GetText("css=ul.error > li"));

            //comment: Type string characters for traffic receiver ID
            quality.Type("id=trafficReceiverId", "qweqrrqwerewqrwerweqrqwrwqrwrwq");
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("Please enter a valid Traffic Receiver ID", quality.GetText("css=ul.error > li"));

            //comment: Type invalid values for Traffic Receiver ID
            quality.Type("id=trafficReceiverId", "-1");
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("The Traffic Receiver ID you entered is not valid", quality.GetText("css=ul.error > li"));

            //comment: Type invalid values for Traffic Receiver ID
            quality.Type("id=trafficReceiverId", "-1");
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("The Traffic Receiver ID you entered is not valid", quality.GetText("css=ul.error > li"));

            //comment: Type a valid traffic receiver id which is registered to another user account
            quality.Type("id=trafficReceiverId", unitIdRegistered);
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");
            quality.AreEqual("Add to Cart: Traffic Verification", quality.GetTitle());
            quality.AreEqual("This traffic receiver is currently registered to another user account", quality.GetText("css=ul.error > li"));

            //comment: Type a valid valid traffic receiver id
            quality.Type("id=trafficReceiverId", unitIdNotRegistered);
            quality.Click("//form[@id='verifyTrafficForm']/table/tbody/tr[5]/td/a[2]/span");
            quality.WaitForPageToLoad("30000");

            ken.ShoppingCartWithTrafficSubscriptionToBuy(true);

            ken.Logout();
        }