Completed
Last Updated: 09 May 2017 10:59 by ADMIN
Ewin
Created on: 04 Dec 2013 21:19
Type: Bug Report
0
Enumerable methods missing in TS code editor intellisense
All of the Find.All methods return an ReadOnlyCollection or IEnumerable but cannot be use IEnumerable methods like where() , first(), firstordefault(). in Test Studio stand alone.  

In VS, there is no issue.  

Please add these methods in stand alone
Attached Files:
12 comments
ADMIN
Daniel Djambov
Posted on: 09 May 2017 10:59
We have upgraded the 3rd party code editing control version and in it the problem is fixed. Our product release with new controls version is planned to be available public by the end of May 2017.
ADMIN
Daniel Djambov
Posted on: 14 Apr 2016 06:44
Telerik: this seems to be a bug from the control we are using for the code editing, so we have reported it to the company that developed it and will wait for their feedback. In the mean time another workaround is to use the full reference of the controls type, i.e. ArtOfTest.WebAii.Controls.HtmlControls.HtmlSpan instead of HtmlSpan only and this will bring all methods.
ADMIN
Shtilianov
Posted on: 17 Feb 2014 12:04
Hi Hong, by extension methods Kosio meant  .FirstOrDefault() .Last() and so on which use System.Lynq which should be referred in your class (and it is referred by default).
In order to use the workaround you should do this like:
IEnumerable<HtmlAnchor> list = ActiveBrowser.Find.AllControls<HtmlAnchor>().Cast<HtmlAnchor>();   
list.FirstOrDefault().Click();

and it works.

Ewin
Posted on: 14 Feb 2014 15:16
What is the reference for the extension methods?
ADMIN
Konstantin Petkov
Posted on: 13 Feb 2014 10:55
Hi Ewin,

I have some good and bad news. The bad is this is going to be too expensive to address (we depend on a third party component for now which is out of our control) and the good - it generally works if you assign to variable and use the extension methods over that. I hope you can use that as a work-around and it will also make the code cleaner.

I'm sorry for the caused inconvenience!
ADMIN
Konstantin Petkov
Posted on: 11 Feb 2014 07:54
Not yet, sorry! It is currently assigned to development team for the next sprint (starting next week).
Ewin
Posted on: 10 Feb 2014 17:35
Is there an update to this issue?
ADMIN
Konstantin Petkov
Posted on: 10 Jan 2014 08:22
Hi,

I think I got the problem, thanks for the video!

Regards!
Ewin
Posted on: 09 Jan 2014 14:52
http://screencast.com/t/U146cXfpjn

So System.Linq was in my using directives.  Hope this video helps you see what I see.
ADMIN
Konstantin Petkov
Posted on: 07 Jan 2014 15:21
Hi, 

Did you get that solved?

I still cannot replicate that. I have AllControls method for the intellisense as well. Please make sure the using directive to "System.Lynq" exists for the particular class.

I'm closing this feedback as unable to reproduce for the time being. Please contact the support team sending them any details you have if that's still an issue for you. 

Thank you!
Ewin
Posted on: 17 Dec 2013 16:13
AllControl method appears to be the one that does not give me the methods that i need.
ADMIN
Konstantin Petkov
Posted on: 17 Dec 2013 14:56
Hi,

That seem to work fine for me. I have attached an image to share what I see.

Can you please share more details for us? Do you have any specific steps to replicate it?

Thanks!