Telerik
Welcome, Ehsan Mahpour
Your Account | |

Forums

Skip Navigation LinksHome / Automated Testing Tools / Community / Forums / WebUI Test Studio Developer Edition: WebAii Automation Framework > The type or namespace name 'Pages' could not be found

Not answered The type or namespace name 'Pages' could not be found

Feed from this thread Subscribe for this thread
  • Igor avatar

    Posted 1 day ago (permalink)

    Hello. I've recorder test from WebUI test studio. It records me like that:

    using Telerik.WebAii.Controls.Html;
    //using Telerik.WebAii.Controls.Xaml;
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.IO;
     
    using ArtOfTest.Common.UnitTesting;
    using ArtOfTest.WebAii.Core;
    using ArtOfTest.WebAii.Controls.HtmlControls;
    using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
    using ArtOfTest.WebAii.Design;
    using ArtOfTest.WebAii.Design.Execution;
    using ArtOfTest.WebAii.ObjectModel;
    using ArtOfTest.WebAii.Silverlight;
    using ArtOfTest.WebAii.Silverlight.UI;
     
    namespace SFTQuickStarts_NUnit_CS
    {
     
     
        public class Login : BaseWebAiiTest
        {
            #region [ Dynamic Pages Reference ]
     
            private string loginPage; // path to site
            private string emulatorPath; // path to emulator
            private string credentials; // path to file with credentials
            private string sitePage; // path to file with site page
            private string login;
            private string pass;
            private Pages _pages;
     
            /// <summary>
            /// Gets the Pages object that has references
            /// to all the elements, frames or regions
            /// in this project.
            /// </summary>
            public Pages Pages
            {
                get
                {
                    if (_pages == null)
                    {
                        _pages = new Pages(Manager.Current);
                    }
                    return _pages;
                }
            }
        
            #endregion

    It is working from WebUI studio. Then I moved this code to Visual Studio 2010. The automation library was connected. But

    private Pages _pages;
     
    public Pages Pages
            {
                get
                {
                    if (_pages == null)
                    {
                        _pages = new Pages(Manager.Current);
                    }
                    return _pages;
                }
            }

    are marked as incorrect. After trying to build project I receive the next:

    Error   1   The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\WebUI Test Studio 2010.3\Samples\WebAii Framework\QuickStarts_NUnit_CS\Login.cs    32  17  QuickStarts_NUnit_CS
     
    Error   2   The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\WebUI Test Studio 2010.3\Samples\WebAii Framework\QuickStarts_NUnit_CS\Login.cs    39  16  QuickStarts_NUnit_CS

    Please help me.

    Reply

Back to Top

Skip Navigation LinksHome / Automated Testing Tools / Community / Forums / WebUI Test Studio Developer Edition: WebAii Automation Framework > The type or namespace name 'Pages' could not be found
Related resources for "The type or namespace name 'Pages' could not be found"

WebAii Framework Features  |  Documentation |  Videos  |  Webinars  |  Automated Testing Tools  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.