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

SelectAllItems method missing with new update

3 Answers 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff
Top achievements
Rank 1
Jeff asked on 11 Dec 2014, 04:10 PM
I just updated Test Studio to the newest version this morning.  Now a bunch of my old tests are broke that were written in Visual Studio using the telerik testing framework.  I get the following error. 

Error 6 'Telerik.WebAii.Controls.Html.GridTableView' does not contain a definition for 'SelectAllItems' and no extension method 'SelectAllItems' accepting a first argument of type 'Telerik.WebAii.Controls.Html.GridTableView' could be found (are you missing a using directive or an assembly reference?) 

I do have Telerik.WebAii.Controls.Html in my project references.  I even removed the reference and added it again.  Did the SelectAllItems method get taken away?

Thanks,

Jeff

‚Äč

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 16 Dec 2014, 01:00 PM
Hello Jeff,

SelectAllItems method should still work. 

Could you please send us your test project so we can debug the issue.

You can send us just some sample demo.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Jeff
Top achievements
Rank 1
answered on 19 Dec 2014, 07:08 PM
Here is the code that is failing.  If you need more than this let me know.  I get the error message described in my first post when trying to use the SelectAllItems method.

        public void SelectAllGridRows(string gridId)
        {
            cw.Find.ById<HtmlDiv>(gridId).Find.ByAttributes<RadGrid>("class=RadGrid RadGrid_Default").MasterTable.SelectAllItems();
        }

Thanks, Jeff
0
Boyan Boev
Telerik team
answered on 24 Dec 2014, 06:58 AM
Hi Jeff,

What exactly do you want to achieve with that code? You are using two find methods in a single row which is not recommended.

What compilation errors do you get with that code?

Please send us a screen shot of the DOM tree so we can help you with the code.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or