why im getting this error when im trying build and execute a radtextbox for store text in variable from input in textbox?

2 posts, 0 answers
  1. Ivan Ivanov
    Ivan Ivanov avatar
    1 posts
    Member since:
    Oct 2019

    Posted 18 Oct Link to this post

    hi im new to this community :) why im getting this error when im trying build and execute a radtextbox for store text in variable from input in textbox?

    its like same error for days i fix code everytime using bug submit but useless

     

    can someone help :) appreciated

    the error :

    [ Compiler ]
    18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(55,43) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
    18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(56,14) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
    18:27:31 'INFO' > Build Failed

     

    codedstep code:

     

    using Telerik.TestStudio.Translators.Common;
    using Telerik.TestingFramework.Controls.TelerikUI.Blazor;
    using Telerik.TestingFramework.Controls.KendoUI.Angular;
    using Telerik.TestingFramework.Controls.KendoUI;
    using Telerik.WebAii.Controls.Html;
    using Telerik.WebAii.Controls.Xaml;
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    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 TestProject4
    {

        public class WebTest : BaseWebAiiTest
        {
            #region [ Dynamic Pages Reference ]

            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
            
            // Add your test methods here...
        
            [CodedStep(@"New Coded Step")]
            private void CompleteWithZeros(RadTextBox textbox, int length)
     {
         var text = CompleteWithZeros(textbox.Text, length);
         textbox.Text = text;
     }
                
            }
        
    }

     

  2. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    157 posts

    Posted 22 Oct Link to this post

    Hello,

    Thank you for sharing your code and details about the encountered error. Before I am able to advise you further I need to gather some additional information about the application under test and your test scenario. Please share more details on the following topics.

    • As you know, different elements have different methods and properties that are accepted and it seems that this is causing the error. Please allow me to access the application under test or share the full DOM tree of the current page, where this element exists. I will be able to analyze it and understand more about its technology and provide better guidance.
    • Please share more details about the test scenario that you want to automate. My assumption is that you want to take some text value from one element in the application and enter that text in a RadTextBox. If that is correct, could you share screenshots and more details about that scenario and along with the application/DOM tree from above, I should be able to help you automate it.
    • In case the above is not your scenario, please explain in more details what is the test case at hand. You could also record or use a publicly accessible application to showcase it even better.
    • Could you explain more about the bugs that you submitted and how you did that? I want to make sure that the communication channels that we expect and monitor are working. Thank you for your help with that in advance.

    I am looking forward to hearing from you and try to find a solution for you quickly.

    Regards,
    Plamen Mitrev
    Progress Telerik

     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top