Telerik Forums
Testing Framework Forum
5 answers
303 views
I see the following error: 

c:\JCRDocs\AutomationLocal\PortalC_Sharp\Activation Test by tag\Find Active Edition Csharp.tstest.cs: Line 103: (CS1061) 'PortalC_Sharp.Pages' does not contain a definition for 'PageTitle' and no extension method 'PageTitle' accepting a first argument of type 'PortalC_Sharp.Pages' could be found (are you missing a using directive or an assembly reference?)

Here is the code entered, I do not follow what is wrong. 

HtmlDiv gridDiv = Find.ById<HtmlDiv>("ctl00_cphApp_rdProducts_C_grdMyProducts");  // HTML ID = id="ctl00_cphApp_rdProducts_C_grdMyProducts"
HtmlDiv content = gridDiv.Find.ByAttributes<HtmlDiv>("rdCenter"); // class=rdCenter
  
HtmlTable table = content.Find.ByTagIndex<HtmlTable>("table", 0);
Log.WriteLine("Rows Count: " + table.Rows.Count.ToString());
  
foreach (HtmlTableRow row in table.AllRows)
{
    foreach (HtmlTableCell cell in row.Cells)
    {
        Log.WriteLine(cell.InnerText);
 
    }
}
Ivaylo
Telerik team
 answered on 28 Jan 2014
6 answers
193 views
Hi,
I am using Testing Framework Telerik_Testing_Framework._2013_2_1210_Free_Edition.
I am installing telerik framework in machine-A and then I am trying to refer the same Dll's in another machine-B without installing the framework in machine B but I am not able to do so.
Due to portability issue, I wanted to refer the same dll's without installing testing framework in different machines. Is there a way I can do this?
Boyan Boev
Telerik team
 answered on 24 Jan 2014
3 answers
118 views
_browser.WaitForFrame(new ArtOfTest.WebAii.Core.FrameInfo() { Id ="DetailsView" });
This line of code worked great in Chrome before Google shoved v32 down our throats.  I tried the 1315 framework to no avail - Have anything newer I can try?

Thanks-
Steve
Boyan Boev
Telerik team
 answered on 22 Jan 2014
0 answers
151 views
000
See
Top achievements
Rank 1
 asked on 21 Jan 2014
10 answers
202 views
Hi

We are trying to access the document object through WebAii c# code, that is in a unit test case.
we want to get the collection of images through the document object. We have a javascript library for webtrends that inserts images as external files. This is present in the document.images collection...but is not seen in the html source.

What is the code to see that the image exists, so that we know for sure that a webtrend call happens.

Thanks
Rad.
Lee
Top achievements
Rank 1
 answered on 21 Jan 2014
1 answer
125 views
Hi,
I am using Testing Framework Telerik_Testing_Framework._2013_2_1210_Free_Edition.
I am installing telerik framework in machine-A and then I am trying to refer the same Dll's in another machine-B without installing the framework in machine B but I am not able to do so.
Due to portability issue, I wanted to refer the same dll's without installing testing framework in different machines. Is there a way I can do this?
Boyan Boev
Telerik team
 answered on 17 Jan 2014
4 answers
178 views
Hi, I am start using Telerik Test Framework and face out with next case:
- How can I execute my Test under different version of Firefox ? For example, I have Firefox  4, 5, 6 installed on my machine and for our client it's important to run Test under all Firefox version.

So, how can I specify exact version of Firefox to be launched ? Currently it's launch the newest version (e.g. Firefox 6).

Thanks.
Boyan Boev
Telerik team
 answered on 15 Jan 2014
1 answer
160 views
Framework version used: 2013.2.1210.0

so we have a class that inherits from the RadColorPicker as per below
public class VisualColourPicker : RadColorPicker
{
}
which we use to get to the VisualColourPicker.SelectedColor property to find the ...well the selected colour.
This however throws an error at the moment with an Element Not found exception using the FindExpression [name 'Exact' LeftButton]
using snoop I have determined that the button that is in fact trying to be located is called "ButtonPart". So i have written my Property code as follows to get around this on my class I mentioned above...
public ArtOfTest.WebAii.Controls.Xaml.Wpf.Color CustomSelectedColor
{
    get
    {
        var but = this.Find.ByName<ArtOfTest.WebAii.Controls.Xaml.Wpf.Button>("ButtonPart");
        var rec = but.Find.ByType<ArtOfTest.WebAii.Silverlight.UI.Rectangle>();
        return (rec.Fill as ArtOfTest.WebAii.Silverlight.UI.SolidColorBrush).Color;
    }
}
This however now gives me. An error of "Unable to cast object of type 'ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush' to type 'ArtOfTest.WebAii.Silverlight.UI.Brush'." So I had to change my property code above to the following to get the selected colour.
var but = this.Find.ByName<ArtOfTest.WebAii.Controls.Xaml.Wpf.Button>("ButtonPart");
var rec = but.Find.ByType<ArtOfTest.WebAii.Silverlight.UI.Rectangle>();
var fill = (ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush)rec.GetProperty(new ArtOfTest.WebAii.Silverlight.AutomationProperty("Fill", typeof(ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush)));
return fill.Color;
Is there a reason why 1: simply VisualColourPicker.SelectedColor does not work out of the box in that its looking for some "LeftButton"
2: When I try and get the colour with myown property that the out of box Fill property then fails in an internal cast. Thanks
Boyan Boev
Telerik team
 answered on 07 Jan 2014
3 answers
179 views
Hello:
       I have scenario where we have to enter username,password and then click on Login button.But unfortunately after the username is set and the password is set the login button is not enabled,however it is working fine if we are manually entering the text.Can you please let us know if there is a way where we can enter the text character by character to get the login button enabled.

Regards,
Naga
Velin Koychev
Telerik team
 answered on 07 Jan 2014
5 answers
229 views
My team has recently upgraded to Visual Studio 2013 and the 2013.1 build of the Testing Framework did work with VS 2013.  However, several of my team members upgraded to the 2013.2 Testing Framework release, and their tests are no longer recognized by the VS Test Launcher.  They have tried to go back to the previous build (2013.1) but that download is no longer available.  Can prior builds of the testing framework be downloaded?  If not, several of my team members will be unable to work until the bug is fixed.

Thanks,

Sophia
Boyan Boev
Telerik team
 answered on 07 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?