コード例 #1
0
        public void DownloadDialogNotUniversal()
        {
            string fileToDownload =
                Path.Combine(
                    AppDomain.CurrentDomain.BaseDirectory,
                    @"myw3schoolsimage.jpg");

            if (File.Exists(fileToDownload))
            {
                File.Delete(fileToDownload);
            }
            var dialog = new DownloadDialogsHandler(
                manager.ActiveBrowser,
                DialogButton.SAVE,
                fileToDownload,
                manager.Desktop);

            manager.DialogMonitor.Start();
            manager.ActiveBrowser.NavigateTo(
                "http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_a_download");
            ArtOfTest.WebAii.Core.Browser myFrame =
                manager.ActiveBrowser.Frames.ById("iframeResult");
            HtmlImage image =
                myFrame.Find.AllByTagName <HtmlImage>("img")[0];

            image.Click(false);

            dialog.WaitUntilHandled();
        }
コード例 #2
0
        public static void ReplyForum(Browser br, Manager M, string reply)
        {
            br.WaitUntilReady();
            br.RefreshDomTree();

            TechForum forum = new TechForum(M);

            br.Actions.Click(forum.ReplyButton);

            Thread.Sleep(2000);
            br.WaitUntilReady();
            br.RefreshDomTree();


            ArtOfTest.WebAii.Core.Browser t1_frame = br.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            br.Actions.SetText(TextEditor, reply);

            //click on post button
            br.Actions.Click(forum.postReply);
        }
コード例 #3
0
        public static void CreateNewForum(Browser br, Manager M, string Subject, string Messege, string Tags)
        {
            br.WaitUntilReady();
            br.RefreshDomTree();
            br.Window.SetFocus();

            Thread.Sleep(3000);
            TechForum forum             = new TechForum(M);
            HtmlSpan  CreateTopicbutton = forum.CreateTopicButton.As <HtmlSpan>();

            CreateTopicbutton.ScrollToVisible();
            CreateTopicbutton.MouseHover();
            CreateTopicbutton.MouseClick();

            Thread.Sleep(3000);
            br.WaitUntilReady();
            br.RefreshDomTree();

            //EnterSubject
            br.Actions.SetText(forum.TopicSubject, Subject);

            Thread.Sleep(3000);
            br.WaitUntilReady();
            br.RefreshDomTree();
            //enterMessege
            ArtOfTest.WebAii.Core.Browser t1_frame = br.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            br.Actions.SetText(TextEditor, Messege);
            //Check on email checkbox
            br.Actions.Check(forum.SendEmail, true);
            //Enter tags
            br.Actions.SetText(forum.Tags, Tags);
            //click on post button
            br.Actions.Click(forum.PostButton);
        }
コード例 #4
0
ファイル: Video.cs プロジェクト: kazztr/telerikautomation
        public void TestMethod_Video()
        {
            string navigateURL;

            ReadData();

            //Login to the system ---------------------
            myManager.ActiveBrowser.NavigateTo(_Url);
            CommonFunctions.HandleSpashScreen(myManager, myManager.ActiveBrowser);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            CommonFunctions.Login(myManager, myManager.ActiveBrowser, _Uname, _Password);
            Thread.Sleep(7000);
            //----------- End reagon

            //Navigate to Video Center-----------------------
            navigateURL = _Url + "/video-center/#/";
            myManager.ActiveBrowser.NavigateTo(navigateURL);
            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            //----------- End reagon

            //Add New Video
            ObjVideo objNewVideo = new ObjVideo(myManager);

            myManager.ActiveBrowser.Actions.Click(objNewVideo.UploadButton);
            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();


            //ClcikOn UploadVideoDialog
            //Add a Video
            var x = new ArtOfTest.WebAii.Win32.Dialogs.FileUploadDialog(myManager.ActiveBrowser, @"C:\Images\BMW.mp4", DialogButton.OPEN);

            myManager.DialogMonitor.Start();
            myManager.DialogMonitor.AddDialog(x);
            HtmlInputFile choose = myManager.ActiveBrowser.Find.ById <HtmlInputFile>("fuVideo");

            choose.Click();
            x.WaitUntilHandled(10000);
            //Sometimes the frame takes little time to show up
            Thread.Sleep(5000);
            //----------- End reagon

            //ClcikOn UploadImageDialog
            //Add a picture
            var xi = new ArtOfTest.WebAii.Win32.Dialogs.FileUploadDialog(myManager.ActiveBrowser, @"C:\Images\918.jpg", DialogButton.OPEN);

            myManager.DialogMonitor.Start();
            myManager.DialogMonitor.AddDialog(xi);
            HtmlInputFile chooseImage = myManager.ActiveBrowser.Find.ById <HtmlInputFile>("ctl00_plhFullWidthContentArea_ucNewVideo_puNewVideo_fuPreviewFrame");

            chooseImage.Click();
            xi.WaitUntilHandled(10000);
            //Sometimes the frame takes little time to show up
            Thread.Sleep(5000);
            //----------- End reagon

            //Addigng description
            ArtOfTest.WebAii.Core.Browser t1_frame = myManager.ActiveBrowser.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            myManager.ActiveBrowser.Actions.SetText(TextEditor, _VideoDescription);


            myManager.ActiveBrowser.Actions.SetText(objNewVideo.VIdeoTitle, _VideoTitle);

            switch (_Club.ToUpper())
            {
            case "CUSTOMER":
                myManager.ActiveBrowser.Actions.Check(objNewVideo.CustomerCheckBox, true);
                break;

            case "DEVELOPER":
                myManager.ActiveBrowser.Actions.Check(objNewVideo.DeveloperCheckBox, true);
                break;

            case "TECHNICAL":
                myManager.ActiveBrowser.Actions.Check(objNewVideo.TechnicalCheckBox, true);
                break;

            case "PARLIAMENT":
                myManager.ActiveBrowser.Actions.Check(objNewVideo.ParliamentCheckBox, true);
                break;

            default:
                myManager.ActiveBrowser.Actions.Check(objNewVideo.CustomerCheckBox, true);
                break;
            }

            myManager.ActiveBrowser.Actions.SelectDropDown(objNewVideo.LanguageDropdown, _VideoLanguage);

            myManager.ActiveBrowser.Actions.SetText(objNewVideo.VideoTag, _VideoTag);

            myManager.ActiveBrowser.Actions.Click(objNewVideo.Save);

            Thread.Sleep(5000);

            //Validate Activity stream
            CommonFunctions.ValideActivityStream(myManager, myManager.ActiveBrowser, _Url, _VideoTitle, _Club);

            Assert.AreEqual(VerifcationPlayVideo(), true, "Video is not playable");

            PostComment(_VideoComment);

            //VideoOtherValidations(_VideoTitle);
        }
コード例 #5
0
        public void TestMethod_BlogParliament()
        {
            string navigateURL;

            ReadData();

            //Login to the system ---------------------
            myManager.ActiveBrowser.NavigateTo(_Url);
            CommonFunctions.HandleSpashScreen(myManager, myManager.ActiveBrowser);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            CommonFunctions.Login(myManager, myManager.ActiveBrowser, _Uname, _Password);
            Thread.Sleep(7000);
            //----------- End reagon

            //Navigate to parliament blog -----------------------
            navigateURL = _Url + "/the-parliament/";
            myManager.ActiveBrowser.NavigateTo(navigateURL);
            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            //----------- End reagon

            //Add new Blog
            CreateBlog objNewblog = new CreateBlog(myManager);

            myManager.ActiveBrowser.Actions.Click(objNewblog.TPnewblog);
            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();

            myManager.ActiveBrowser.Actions.SetText(objNewblog.TPBlogTitle, _BlogTitle);

            //Add a picture
            var x = new ArtOfTest.WebAii.Win32.Dialogs.FileUploadDialog(myManager.ActiveBrowser, @"C:\Images\918.jpg", DialogButton.OPEN);

            myManager.DialogMonitor.Start();
            myManager.DialogMonitor.AddDialog(x);
            HtmlInputFile choose = myManager.ActiveBrowser.Find.ById <HtmlInputFile>("fuPreviewImage");

            choose.Click();
            x.WaitUntilHandled(10000);
            //Sometimes the frame takes little time to show up
            Thread.Sleep(5000);
            //----------- End reagon


            ArtOfTest.WebAii.Core.Browser t1_frame = myManager.ActiveBrowser.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            myManager.ActiveBrowser.Actions.SetText(TextEditor, _BlogDescription);

            //This functionality is temporalyremoved will be implemented in the future
            //--------------------------------------------------------------------------
            //myManager.ActiveBrowser.Actions.Check(objNewblog.TPfrontpagenews, _FrontPageNews);
            //myManager.ActiveBrowser.Actions.Click(objNewblog.TPdisplayuntill);
            //myManager.ActiveBrowser.Actions.SetText(objNewblog.TPdisplayuntill, _displayUntill);
            //myManager.ActiveBrowser.Actions.Click(objNewblog.TPdisplayuntill);
            //--------------------------------------------------------------------------

            //Selecting the pulish Subsidiary
            if (_Subsidiary != "")
            {
                selectSubsidiary(_Subsidiary);
            }
            //----------- End reagon

            //Selecting the pulish Subsidiary
            if (_areas != "")
            {
                selectArea(_areas);
            }
            Thread.Sleep(5000);
            //----------- End reagon


            //Publish or Draft
            if (_publish == true)
            {
                myManager.ActiveBrowser.Actions.Click(objNewblog.saveandPublish);
            }
            else if (_draft == true)
            {
                myManager.ActiveBrowser.Actions.Click(objNewblog.saveDraft);
            }
            else
            {
                myManager.ActiveBrowser.Actions.Click(objNewblog.saveandPublish);
            }

            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            //----------- End reagon


            TPBlogArchiveValidation(_BlogTitle);
            TPBlogvalidationCarasoel(_BlogTitle);

            Thread.Sleep(5000);
            CommonFunctions.ValideActivityStream(myManager, myManager.ActiveBrowser, _Url, _BlogTitle, "PARLIAMENT");

            //after the activity stream validation the test screen will be on the added blog

            //Adding a Comment to the blog

            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();

            myManager.ActiveBrowser.Actions.SetText(objNewblog.TPBlogComment, _TPBlogComment);
            myManager.ActiveBrowser.Actions.Click(objNewblog.TPBlogCommentPostButton);

            CommonFunctions.ActivityStreamCommentsValidator(myManager, myManager.ActiveBrowser, _Url, _TPBlogComment, "PARLIAMENT");
        }
コード例 #6
0
ファイル: Article.cs プロジェクト: kazztr/telerikautomation
        public void CreateArticle(string Heading, string Name, IList <string> ClubsList, string Introduction, string Description)
        {
            //name on the page
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlInputText NameOnPage = myManager.ActiveBrowser.Find.ById("dijit_form_ValidationTextBox_3").As <HtmlInputText>();

            //NameOnPage.ScrollToVisible();
            NameOnPage.MouseHover();
            NameOnPage.MouseClick();
            NameOnPage.Text = Name;


            //Select PreviewImage
            Thread.Sleep(2000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan PreviewImageButton = myManager.ActiveBrowser.Find.ByExpression("id=#dijit_form_Button_.._label").As <HtmlSpan>();

            PreviewImageButton.MouseClick();

            //TreeExpand
            Thread.Sleep(7000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan TreeExpand = myManager.ActiveBrowser.Find.ByXPath("/html/body/div[58]/div[2]/div[3]/div/div/div[2]/div/div/div/div[2]/a/span/span[1]").As <HtmlSpan>();

            TreeExpand.MouseClick();


            Thread.Sleep(5000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan firstpng = myManager.ActiveBrowser.Find.ByXPath("/html/body/div[58]/div[2]/div[3]/div/div/div[2]/div/div/div/div[2]/div/div[10]/a/span/span[6]").As <HtmlSpan>();

            firstpng.MouseClick();

            Thread.Sleep(2000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan okbuttonPicture = myManager.ActiveBrowser.Find.ByExpression("id=#dijit_form_Button_.._label", "innertext=OK").As <HtmlSpan>();

            okbuttonPicture.MouseClick();

            //Add Heading
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlInputText HeadingtextBox = myManager.ActiveBrowser.Find.ById("dijit_form_ValidationTextBox_4").As <HtmlInputText>();

            HeadingtextBox.Text = Heading;

            //SelectClub
            objAricle article = new objAricle(myManager);

            HtmlInputCheckBox CustomerCheckbox  = article.ArticleCustomerCheckbox.As <HtmlInputCheckBox>();
            HtmlInputCheckBox DeveloperCheckbox = article.ArticleDeveloperCheckbox.As <HtmlInputCheckBox>();
            HtmlInputCheckBox TechnicalCheckbox = article.ArticleTechnicalCheckbox.As <HtmlInputCheckBox>();
            HtmlInputCheckBox ParlimentCheckbox = article.ArticleCustomerCheckbox.As <HtmlInputCheckBox>();

            foreach (string listItem in ClubsList)
            {
                switch (listItem)
                {
                case "Customer":
                    CustomerCheckbox.MouseClick();
                    break;

                case "Developer":
                    DeveloperCheckbox.MouseClick();
                    break;

                case "Technical":
                    TechnicalCheckbox.MouseClick();
                    break;

                case "Parliment":
                    ParlimentCheckbox.MouseClick();
                    break;

                default:
                    CustomerCheckbox.MouseClick();
                    break;
                }
            }

            //CLick On Create Button
            Thread.Sleep(2000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan CreateButton = myManager.ActiveBrowser.Find.ByExpression("id=#dijit_form_Button_._label", "innertext=Create").As <HtmlSpan>();

            CreateButton.MouseClick();
            Thread.Sleep(5000);


            //Click On the Edit Button
            Thread.Sleep(20000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan EditButton     = myManager.ActiveBrowser.Find.ByExpression("id=#dijit_form_ToggleButton_.", "title=All Properties").As <HtmlSpan>();
            HtmlSpan EditButtonSpan = EditButton.Find.AllByTagName("span")[0].As <HtmlSpan>();

            EditButtonSpan.ScrollToVisible();
            EditButtonSpan.MouseHover();
            EditButtonSpan.MouseClick();
            Thread.Sleep(7000);

            //Adding Introduction
            //Add Heading
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlTextArea IntroductionField = myManager.ActiveBrowser.Find.ByExpression("id=#uniqName_..._.", "name=introduction").As <HtmlTextArea>();

            IntroductionField.MouseClick();
            IntroductionField.Text = Introduction;


            Thread.Sleep(5000); //Till the editor loads
            //Add Discription
            ArtOfTest.WebAii.Core.Browser t1_frame = myManager.ActiveBrowser.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            myManager.ActiveBrowser.Actions.SetText(TextEditor, Description);


            //Publish
            //Click on publish
            ObjEditMode editmode      = new ObjEditMode(myManager);
            HtmlSpan    PublishButton = editmode.PublishDropdown.As <HtmlSpan>();

            PublishButton.ScrollToVisible();
            PublishButton.MouseHover();
            PublishButton.MouseClick();
            Thread.Sleep(2000);

            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan Publish = editmode.PublishButton.As <HtmlSpan>();

            Publish.MouseClick();
        }
コード例 #7
0
        public void CreateNewBlog(string navigateURL, Browser Br, Manager M, string BlogTitle, string BlogDescription, string Club, string BlogTag)
        {
            Br.NavigateTo(navigateURL);
            Thread.Sleep(7000);
            Br.WaitUntilReady();
            Br.RefreshDomTree();

            CreateBlog objNewblog = new CreateBlog(M);

            //objNewblog.createEntry.Wait.ForExists(5000);
            Br.Actions.Click(objNewblog.createEntry);

            Thread.Sleep(5000);
            Br.WaitUntilReady();
            Br.RefreshDomTree();

            //Adding title to blog
            Br.Actions.SetText(objNewblog.BlogTitle, BlogTitle);

            var x = new ArtOfTest.WebAii.Win32.Dialogs.FileUploadDialog(Br, @"C:\Images\918.jpg", DialogButton.OPEN);

            M.DialogMonitor.Start();
            M.DialogMonitor.AddDialog(x);

            HtmlInputFile choose = Br.Find.ById <HtmlInputFile>("fuPreviewImage");

            choose.Click();
            x.WaitUntilHandled(10000);


            Thread.Sleep(5000);
            Br.WaitUntilReady();
            Br.RefreshDomTree();

            ArtOfTest.WebAii.Core.Browser t1_frame = Br.Frames[0];

            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            Br.Actions.SetText(TextEditor, BlogDescription);

            switch (Club.ToUpper())
            {
            case "CUSTOMER":
                Br.Actions.Check(objNewblog.cbxBlogCustomer, true);
                break;

            case "DEVELOPER":
                Br.Actions.Check(objNewblog.cbxBlogDeveloper, true);
                break;

            case "TECHNICAL":
                Br.Actions.Check(objNewblog.cbxBlogTechnical, true);
                break;

            default:
                Br.Actions.Check(objNewblog.cbxBlogCustomer, true);
                break;
            }

            Br.Actions.SetText(objNewblog.blogTags, BlogTag);
            Br.Actions.Click(objNewblog.blogPostButton);
            Thread.Sleep(7000);
        }
コード例 #8
0
ファイル: Standerd.cs プロジェクト: kazztr/telerikautomation
        public void EditStanderPage(string Name, string TopContent)
        {
            //Click On the Edit Button
            Thread.Sleep(20000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan EditButton     = myManager.ActiveBrowser.Find.ByExpression("id=#dijit_form_ToggleButton_.", "title=All Properties").As <HtmlSpan>();
            HtmlSpan EditButtonSpan = EditButton.Find.AllByTagName("span")[0].As <HtmlSpan>();

            EditButtonSpan.ScrollToVisible();
            EditButtonSpan.MouseHover();
            EditButtonSpan.MouseClick();
            Thread.Sleep(7000);


            //Click on the rightTogglebar to get blocks
            ObjEditMode editmode = new ObjEditMode(myManager);

            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan righttogglebar = editmode.RightPane.As <HtmlSpan>();

            righttogglebar.MouseClick();

            //click on the pin icon
            Thread.Sleep(5000);
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan PagesTreePin = editmode.RightSideBLockPin.As <HtmlSpan>();

            PagesTreePin.MouseClick();

            //Search for the top block
            HtmlInputText Searchforblocks = editmode.RightPaneSearchText.As <HtmlInputText>();

            Searchforblocks.Text = TopContent;
            Searchforblocks.MouseClick();
            myManager.Desktop.Mouse.Click(MouseClickType.LeftClick, Searchforblocks.GetRectangle());
            myManager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Enter);


            Thread.Sleep(5000);
            myManager.ActiveBrowser.RefreshDomTree();
            //Selected dev
            HtmlDiv Kbanner = myManager.ActiveBrowser.Find.ById("dgrid_4-row-16206").As <HtmlDiv>();

            HtmlDiv topcontentarea = editmode.topcontentarea.As <HtmlDiv>();

            var des = new System.Drawing.Point();

            des.X = topcontentarea.ScrollTop + 50;
            des.Y = topcontentarea.ScrollLeft + 50;

            Kbanner.DragTo(topcontentarea, ArtOfTest.Common.OffsetReference.TopCenter, des);

            //Add other details
            ObjStanderd standerdpage = new ObjStanderd(myManager);

            HtmlInputText Heading      = standerdpage.Heading.As <HtmlInputText>();
            HtmlTextArea  Introduction = standerdpage.Introduction.As <HtmlTextArea>();

            //adding just the heading wont add the text to the contorl
            Heading.ScrollToVisible();
            Heading.MouseHover();
            Heading.MouseClick();
            Heading.Text = _Heading;

            Introduction.ScrollToVisible();
            Introduction.MouseHover();
            Introduction.MouseClick();
            Introduction.Text = _Introduction;

            ArtOfTest.WebAii.Core.Browser t1_frame = myManager.ActiveBrowser.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            myManager.ActiveBrowser.Actions.SetText(TextEditor, _BodyText);

            //Publish
            //Click on publish
            HtmlSpan PublishButton = editmode.PublishDropdown.As <HtmlSpan>();

            PublishButton.ScrollToVisible();
            PublishButton.MouseHover();
            PublishButton.MouseClick();
            Thread.Sleep(2000);

            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan Publish = editmode.PublishButton.As <HtmlSpan>();

            Publish.MouseHover();
            Publish.MouseClick();
            Thread.Sleep(10000);

            myManager.ActiveBrowser.Refresh();
            //Click on options dropdown
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlSpan OptionsButton = editmode.OptionsButton.As <HtmlSpan>();

            OptionsButton.ScrollToVisible();
            OptionsButton.MouseHover();
            OptionsButton.MouseClick();


            //Click on the URL
            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            HtmlDiv    OptionsDropdown = editmode.OptionsDropdown.As <HtmlDiv>();
            HtmlAnchor pagelink        = OptionsDropdown.Find.AllByTagName <HtmlAnchor>("a")[0];

            pagelink.MouseClick();
            Thread.Sleep(2000);


            ValidatePage(_Heading);
        }
コード例 #9
0
        public void TestMethod_IssueCenterSearchFilter()
        {
            string HitscountString;
            int    hitsCount;

            //Read the datasheet
            ReadData();

            //Login to the system
            myManager.ActiveBrowser.NavigateTo(_Url);
            CommonFunctions.HandleSpashScreen(myManager, myManager.ActiveBrowser);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            CommonFunctions.Login(myManager, myManager.ActiveBrowser, _Uname, _Password);
            Thread.Sleep(7000);

            //Navigate to IssueCenter
            string navigateURL;

            navigateURL = _Url + "/bugs-wishes/";
            myManager.ActiveBrowser.NavigateTo(navigateURL);
            Thread.Sleep(5000);


            //Search For a bug
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();

            ObjIssueCenter  issueCenter  = new ObjIssueCenter(myManager);
            HtmlInputText   SearchText   = issueCenter.SearchTextBox.As <HtmlInputText>();
            HtmlInputButton SearchButton = issueCenter.SearchButton.As <HtmlInputButton>();

            SearchText.Text = _SearchText;
            SearchButton.MouseClick();
            //It takes sometime to load the results
            Thread.Sleep(7000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();

            HtmlTable ResultSet = issueCenter.SearchTable.As <HtmlTable>();


            Element HitsCount = issueCenter.HitsCount;

            //HtmlDiv HitsCount = ResultSet.Find.ById("searchResultSummary").As<HtmlDiv>();

            HitscountString = HitsCount.InnerText;
            hitsCount       = CommonFunctions.ExtractNumberFromSrting(HitscountString);

            //Verify the number of rows are actually displyed in the table
            Assert.AreEqual(hitsCount, ResultSet.BodyRows.Count);

            Thread.Sleep(2000);
            myManager.ActiveBrowser.RefreshDomTree();

            //verify search in rersult
            HtmlDiv         div            = myManager.ActiveBrowser.Find.ById("searchTbl_filter").As <HtmlDiv>();
            HtmlInputSearch searchinResult = div.ChildNodes[0].ChildNodes[1].As <HtmlInputSearch>();

            searchinResult.Text = _SearchInResult;
            myManager.Desktop.Mouse.Click(MouseClickType.LeftClick, searchinResult.GetRectangle());
            myManager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Enter);
            Thread.Sleep(5000);
            ResultSet.Refresh();
            myManager.ActiveBrowser.RefreshDomTree();

            string result = ResultSet.Rows[0].Cells[0].InnerText;

            //Verify the searched sesult from the grid
            Assert.AreEqual(result, _SearchInResult);

            //open the popup
            ResultSet.Rows[0].MouseClick(MouseClickType.LeftDoubleClick);

            Thread.Sleep(5000);
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.RefreshDomTree();
            //Click on track This issue
            Element TrackSLider = issueCenter.TrackSlider;

            if (TrackSLider != null)
            {
                Thread.Sleep(2000);
                myManager.ActiveBrowser.Actions.Click(TrackSLider);

                Thread.Sleep(3000);
                myManager.ActiveBrowser.WaitUntilReady();
                myManager.ActiveBrowser.RefreshDomTree();

                HtmlDiv trackMessage    = issueCenter.TrackValidator.As <HtmlDiv>();
                string  trackMessageext = trackMessage.InnerText;
                Assert.IsTrue(trackMessageext.Contains("Added to your tracking list."));

                //remove from the tracking list
                Thread.Sleep(2000);
                myManager.ActiveBrowser.Actions.Click(TrackSLider);
            }
            //Add a comment
            ArtOfTest.WebAii.Core.Browser t1_frame = myManager.ActiveBrowser.Frames[0];
            Element TextEditor = t1_frame.Find.ByXPath("/html/body");

            myManager.ActiveBrowser.Actions.SetText(TextEditor, _Comment);

            HtmlAnchor Submitbutton = issueCenter.SubmitComment.As <HtmlAnchor>();

            Submitbutton.ScrollToVisible();
            Submitbutton.MouseClick();

            //Click on open in a new tab
            HtmlAnchor OpenNewtab = issueCenter.OpenNewTab.As <HtmlAnchor>();

            OpenNewtab.MouseClick();

            Thread.Sleep(5000);
            myManager.ActiveBrowser.Refresh();
            //Validate Comments in the page
            myManager.ActiveBrowser.WaitUntilReady();
            myManager.ActiveBrowser.Window.SetFocus();

            HtmlDiv Comments = issueCenter.Comments.As <HtmlDiv>();

            Assert.IsTrue(Comments.InnerText.Contains(_Comment));
        }