Telerik Forums
Testing Framework Forum
3 answers
95 views
Hi,
How to set Chinese Character as HtmlInputText.Text ?
I have a requirement to test whether the input fields accept Chinese characters.
Please let me know how to proceed?
Thanks and Regards,
KiranKN.

Stoich
Telerik team
 answered on 02 Feb 2011
4 answers
84 views
Hi Team,

I am using WebAii Test v1.1 to execute the scripts on Windows-7 IE8 browser.

Q1. Is WebAii v1.1. supported on Windows-7?
Q2. I found that the scripts were throwing exceptions when i tried to execute them in IE8 browser of Windows7(64 bit) for this I had to do some settings like,
- Turn the 'Protected Mode' off.
- Check the option "Disable toolbars and extensions when InPrivate Browsing starts" from Inprivate under Privac settings of Internet Options

After performing the above options the scripts atleast initiated to open the browser and navigate the URL. However now we observed that the scripts are not able to perform any "Click" action.

Can anyone please let us know the reason for these observations and failures.

Regards,
Devender
Cody
Telerik team
 answered on 01 Feb 2011
4 answers
121 views
Hi folks,

It's possible to register request/response listeners under HTTPS?
In my tests I'm successful under HTTP but not under HTTPS.

Thanks!
Fred
Frederico
Top achievements
Rank 1
 answered on 27 Jan 2011
7 answers
371 views
UIAutomation.WebAiiNUnitTest1.SampleWebAiiTest:
System.ApplicationException : Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. Also make sure that WebAii Test Execution client is properly installed. Check Tools->Manage Add-ons.
  ----> System.NullReferenceException : Object reference not set to an instance of an object.

What is the Test Execution client and how do I install it?
Yogesh
Top achievements
Rank 1
 answered on 24 Jan 2011
2 answers
96 views
Please forgive me if you've seen this post elsewhere; I'm posting here as I've had little (read "no") response elsewhere.

I've been chatting with the author of XStudio and I convinced him that writing an interface for his product for WebUI might be a Good Thing.

Apparently, he's been able to write a launcher from information gleaned from some of the WebUI team's blogs. But he needs examples of the results file - .aiiresult I believe they're called - to finish the process off.

I wonder if anyone can supply a small sample set covering the range of likely outputs that I can pass on to him.

Thanks in anticipation.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 24 Jan 2011
1 answer
115 views
hi, all
   I want to get an element which is not exist, e.g: app.FindName<Button>("btnAdd"), this button is not exist before I click "add user" link, is there any method can do this? just return "false" if this element can't be found, I always get exception: "System.TimeoutException: Wait for condition has timed out?" thanks very much!
Cody
Telerik team
 answered on 21 Jan 2011
5 answers
260 views
I am using WEBAii framework to write test script for Silverlight test automation in C#

Also I am using WebUI Test Studio QA to record n play test scenario steps. Using one step, Test Studio found Silverlight control and when I checked FindLogic in the property window for the element found I see following expression

[name 'Exact' TabsContainer] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /radtabcontrol[automationid=Tabs]/grid[0]/raddockpanel[0]/layouttransformcontrol[name=HeaderDockedElement]/grid[name=RootVisual]/contentpresenter[name=ContentPresenter]/grid[0]/raddockpanel[0]/scrollviewer[automationid=ScrollViewerElement]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/tabwrappanel[0]/radtabitem[0]]

Now my question is how to write C# statement to find the same element. I wrote C# statement as followed but element is not found. Where I am going wrong in writing following statment ?

FrameworkElement myElement = app.Find.ByExpression(new XamlFindExpression("Name=TabsContainer", "|", "XamlTag=ScrollViewer", "|", "XamlPath=/radtabcontrol[automationid=Tabs]/grid[0]/raddockpanel[0]/layouttransformcontrol[name=HeaderDockedElement]/grid[name=RootVisual]/contentpresenter[name=ContentPresenter]/grid[0]/raddockpanel[0]/scrollviewer[automationid=ScrollViewerElement]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/tabwrappanel[0]/radtabitem[0]"));

Thank You and Best Regards !

/ Yogesh
Cody
Telerik team
 answered on 14 Jan 2011
2 answers
148 views
Hi, I have a problem with hyperlink which save and close pop up window.
Below is the code:

Manager aaa = new Manager(false);
aaa.Start();
if (aaa.Browsers.Count == 0)
{
    aaa.LaunchNewBrowser(BrowserType.InternetExplorer);
}
aaa.ActiveBrowser.NavigateTo(TextBox1.Text);
 
 
 
aaa.SetNewBrowserTracking(true);
// link wchich open pop up
aaa.ActiveBrowser.Actions.Click(aaa.ActiveBrowser.Find.ById("newQuestion"));
aaa.WaitForNewBrowserConnect(aaa.Browsers[aaa.Browsers.Count - 1].Url, true, 6000);
aaa.ActiveBrowser.WaitUntilReady();
aaa.ActiveBrowser.RefreshDomTree();
 
//update value in the pop up
aaa.ActiveBrowser.Actions.SetText(aaa.ActiveBrowser.Find.ById("name"), "nazwa testowa");
 
aaa.ActiveBrowser.PrepareFrameForClosing();               
aaa.ActiveBrowser.AutoDomRefresh = false;
aaa.ActiveBrowser.AutoWaitUntilReady = false;
//link wchich save data int the pop up and close pop up
aaa.ActiveBrowser.Actions.Click(aaa.ActiveBrowser.Find.ById("save"));
aaa.Browsers[aaa.Browsers.Count - 1].Close();


When I use the above code, data in the pop up window fills in just ok, pop up closes, but when I open this pop up window one more time, the data is null (in the id "name").

On the other hand after I delete those lines:
   
aaa.ActiveBrowser.AutoDomRefresh = false;
aaa.ActiveBrowser.AutoWaitUntilReady = false;

everything is just fine but I get an exception:

Wait for condition has timed out
 
 
[TimeoutException: Wait for condition has timed out]
   ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo) +115
   ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) +110
   ArtOfTest.WebAii.Core.Browser.WaitUntilReady() +149
   ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady) +38
   ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request) +25
   ArtOfTest.WebAii.Core.Actions.Click(Element targetElement) +89
   WebApplicationRealTelerikTest.str1.Button17_Click(Object sender, EventArgs e) in C:\Users\jbarteczek\Desktop\testyAutomat\oceny\WebApplicationRealTelerikTest\index.aspx.cs:1824
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563


Have You any sugestions ?
jaco
Top achievements
Rank 1
 answered on 13 Jan 2011
1 answer
138 views
Hi Guys, 

I'm trying to write a simple test to find out whether a page is a read-only by checking if the attribute 'disable' is a part of a control's attribute (checkbox in this case).
I've got 3 disabled check-boxes on the page I'm testing. They look like this:
<input type="checkbox" disabled="disabled" name="assessmentForm:metCompletedPassedCourse" id="assessmentForm:metCompletedPassedCourse"/>

So I 'Collecting' all 3....
var checkBox = Manager.ActiveBrowser.Find.AllByAttributes<HtmlInputCheckBox>("type=checkbox");

And then try to verify that 'disable' is an existing attribute of each one of the check boxes elements. 
Assert.True(checkBox.All(item => item.Attributes.Contains( ?

Could you pls advice what is the iAttribute value as I'm not able to complete the above assertion....

Ta.


 
Stoich
Telerik team
 answered on 12 Jan 2011
3 answers
103 views
Hey guys,

Is there a way to refresh the browser window count (Manager.Browser.Count)?  I've run into a very intermittent problem where occasionally my tests will fail, because the browser count is wrong.  So in my code I want to do a quick check to see if the browser count is where it should be, and if it isn't, refresh the count and try again.

Alternatively, is there a "Wait For" new browser window to load function?  This could also solve the problem, as I think the above maybe related to a timing issue.

Thanks.
Stoich
Telerik team
 answered on 11 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?