Telerik Forums
Testing Framework Forum
1 answer
79 views

Hello,

I am trying to get the tool tip value of the a grid cell, but ideally I am not getting the tool tip value, it even becomes very tough when I try to get the tooltip value of a grid when the grid contains calendar control or combobox control in the grid cell, I have written different functions to get the tool tip value when the gridcell contain combobox or calendar. Or simple textbox for that matter. None of them are working …Can you please help me to resolve this Automation…This is very Critical in my Test Case Evaluation…

       //ABI

        public string GetGridCellToolTip(string gridName, int row, int column)

        {

            IGridControl gridControl = controlFinder.FindGridx(gridName);

            return gridControl.GetGridCellToolTipText(row, column);

        }

        //ABI

 

 

 

        //ABI

        /// <summary>

        /// Get the tool tip text in the cell designated by the given row and column.

        /// </summary>

        /// <param name="row">The cell row.</param>

        /// <param name="column">The cell column.</param>

        /// <returns>The tool tip value of the cell.</returns>

        public string GetGridCellToolTipText(int row, int column)

        {

            //radGridView.Wait.For(f => f.As<RadGridView>().Rows.Count > 0);

            return radGridView.Rows[row].Cells[column].ToolTipText;

        }

        //ABI

Stoich
Telerik team
 answered on 15 Aug 2011
4 answers
181 views
Hi there.

I've just downloaded the latest WebAii bits and I'm really liking the functionality. One thing I cannot find out how to configure is the output tracing from WebAii. In my unit test runners, I see a lot of tracing text such as:

[19:46] - Using ArtOfText.....

How can I disable this text from being outputted? I've looked at the documentation for the settings class, but can't seem to find the setting for tracing. Guess I've missed something. Could someone help me out please?

Cheers.
Jas.
Cody
Telerik team
 answered on 12 Aug 2011
1 answer
136 views

Hello,

I have to launch my Silverlight application for automating my testing, I am now working with Internet Browser for now, but I ideally need to automate my testing by initiating the desktop link to of Silverlight application to test. I have tried couple of options posted in some the following links..

 

http://www.telerik.com/automated-testing-tools/support/kb/using-telerik-testing-framework-with-silverlight-out-of-browser-and-elevated-trust.aspx

 

http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/silverlight-out-of-browser-in-webaii-2010-2.aspx

 

I hope I am missing something…Please help me on the same…

 

Find my desktop link properties::

"C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe" 846926624.localhost

 

Code Below:

 

//ABI

        [TestMethod]

        public void SilverlightApplicationFileUploadExample4()

        {

            var settings = GetSettings();

            settings.EnableSilverlight = true;

            Window buttonToClick = null;

 

            Initialize(settings, Console.WriteLine);

            Manager.Settings.ExecutionDelay = 10;

            //Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

 

            //ActiveBrowser.NavigateTo("http://localhost/Web/FieldClaims.aspx");

 

            Manager.LaunchNewBrowser(BrowserType.SilverlightOutOfBrowser, true, System.Diagnostics.ProcessWindowStyle.Minimized, "846926624.localhost"); //Fails here with Script Error

       

          }

Stoich
Telerik team
 answered on 11 Aug 2011
5 answers
130 views
Hello.

Use this code:
var bro = Manager.Current.ActiveBrowser;
var frame = bro.Frames["my_frame"];
frame.RefreshDomTree();
             
var rect = frame.Find.ById("my_div").GetRectangle();
Manager.Current.Desktop.Mouse.Click(MouseClickType.LeftClick, rect);

and these pages:

1.html
<iframe name="my_frame" src="2.html" style="position: absolute; width: 200px; height: 200px; top: 300px; left: 300px;">

2.html
<div id="my_div" onclick="alert(1)" style="margin: 40px; width: 30px; height: 30px; background: red"></div>


In FF4 it clicks outside the frame... and nothing works
Stoich
Telerik team
 answered on 09 Aug 2011
8 answers
545 views
help I am just trying to build this c# examle:
http://www.artoftest.com/support/webaii/topicsindex.aspx

and I am getting the following error:
The type or namespace name 'Manager' could not be found (are you missing a using directive or an assembly reference?) 


I have "ArtOfTest.Common" and "ArtOfTest.WebAii" referenced and I did resolve on the 'Manager object' and it add this declaration to my code:

using

 

 

ArtOfTest.WebAii.Core;

yet it will still not build, and I missing a ref?

 




Cody
Telerik team
 answered on 08 Aug 2011
1 answer
79 views
Hi,

i caputured a test with IE 9. Now i want to run the same test with Firefox 5.0.1. The test always fails because the "Handle 'Alert' dialog runs in a timeout.

What can be the problem?

Thanks
Anthony
Telerik team
 answered on 05 Aug 2011
3 answers
2.2K+ views
I would think this would be simple.  Trying to test a web page which contains a RadListBox I'm able to get it just fine.   The problem appears nothing indicates what is  selected in the list.  I would think SelectedIndex or SelectedItem would work but both are useless.

My code:

        public string GetSelectedItem(HtmlDiv parentElement, string controlID)
        {
            RadListBox theListbox = parentElement.Find.ById<RadListBox>(controlID);
            
            //  proof the code is getting the list box and can get a RadListBoxItem...
            for( int idx = 0; idx < theListbox.ChildNodes.Count(); idx++ )
            {
                RadListBoxItem  li = theListbox.ChildNodes[idx];
                string xx = li.TextContent;
            }

            // only after this:
            return theListbox.ChildNodes[theListbox.SelectedIndex].TextContent ;
        }

And going further i would think if I'm able to get a ListBoxItem, while interating through the for loop testing if a given item has the text that i would like to set, when the time come i thought i would need to do something like:

public Boolean SetSelectedItem(HtmlDiv parentElement, string controlID)
{
            RadListBox theListbox = parentElement.Find.ById<RadListBox>(controlID);
            
            //  proof the code is getting the list box and can get a RadListBoxItem...
            for( int idx = 0; idx < theListbox.ChildNodes.Count(); idx++ )
            {

                RadListBoxItem  li = theListbox.ChildNodes[idx];
                if( li.TextContent.Equals( "???) )
                {
                        li.Selected = true;
                        // or
                        theListBox.SelectedItem = li;
                        //
                        theListBox.SelectedIndex = idx;
                       return true;
            }
            return false;
}

But nothing seems to be working and the SelectedItem and SelectedIndex are both read only.  

Any suggestions.   This seems simple, but couldn't find any samples on here or documentation for the Art Of Test or Telerik controls which i've seen that is useful.  Any suggestions are welcome.

            // only after this:
            return theListbox.ChildNodes[theListbox.SelectedIndex].TextContent ;
        }
Helen
Telerik team
 answered on 05 Aug 2011
10 answers
201 views
Hi,

We have a requirement to test a editbox; to enter a test string of length>16
[editbox should accept a string with a max length of 16 only]

i am using htmlinputText.Text = "some value i would enter here";
it's accepting the strings whose length is more than 16.

where as the same editbox doesnot accept string of length more than 16 when we "actually type in".

Please help.

thanks and regards,
Kiran K N
Cody
Telerik team
 answered on 02 Aug 2011
6 answers
135 views
Hi,

After installing Telerik.WebAii.Framework.2010.3.1607.msi

There is folder C:\Program Files (x86)\Telerik\WebAii Testing Framework 2010.3\Browser Extensions, it contains 4 other folders:
. Chrome
. Firefox
. Firefox4
. Safari


What is the purpose of these folders?

Thanks,
San
Cody
Telerik team
 answered on 02 Aug 2011
4 answers
218 views

Hi Team,

I am stuck in the following area since couple of days.

We are implementing Keyword framework with Test Studio and we are facing few issues while implementing the silver light Keywords.

In our excel sheet we are passing the Parent object before accessing the underlying object in a particular page.

 

Now to access the Parent element we need to create a string as shown below and execute it.

But we are unable to execute the string or know how to create proper string.

 

Pages + "." + pageName + "." + Find.ByName<HtmlInputText>(objID).Text = inputData;

 

In Visual studio it is giving error as “An object reference is required for non static field method or property “ArtOfTest.webAii.Core.Find.ByName<TControl>(String)”

Please let us know how to resolve this issue.We tried several ways by referring samples posted in the net,
e.g. http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/f248d774-0918-4f68-a0c6-23aa29a7ae29
But after doing any modifications @ above link/code we are not able to execute it successfully.

Please help or let us know if there is some other way to resolve the issue.

Regards,

Tapan

mints
Top achievements
Rank 1
 answered on 02 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?