This is a migrated thread and some comments may be shown as answers.

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

1 Answer 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 18 Oct 2019, 04:52 PM

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;
 }
            
        }
    
}

 

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 22 Oct 2019, 01:44 PM

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!
Tags
General Discussions
Asked by
n/a
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or