Telerik Forums
Testing Framework Forum
2 answers
148 views
Another issue appeared: FileUploadDialog  cannot be handled if test executed in non-interactive environment.
We have console app test scenario, which pop-up FileUpload dialog. During debug and interactive checks this dialog was handled successfully by this code:
var fileDialog = new FileUploadDialog(ab, toAbsPath(testImage), DialogButton.OPEN);
mgr.DialogMonitor.AddDialog(fileDialog);
mgr.DialogMonitor.Start();

But when we deployed it on our monitoring server (win2003EE SP2 \ IE8) - this code no longer works. Console app periodicaly started by special monitoring software - its run in interactive but always LOCKED session (Its like you scheduled program to run with custom app and locked your PC). After few runs I logged in and saw all instances of IE, not closed and with FileUploadDialog popped (and not handled properly).
I tried to figure this bug origin with Sysinternals procmon but was unable to deal with all that calls ( saved dump btw).
Any ideas or help how to track and fix that misbehaviour.

UPDATE: I read anwer on this topic
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/simulated-clicks-not-running-if-machine-is-in-locked-state.aspx
but i still wonder why then all other my tests run fine, except with FileUploadDialog.
I suspect this is because FileUploadDialog is win32 window, not browser one, but then can you point me to working example of FileUpload scenario without this dialog monitoring ( one in docs doesn't work, afaik).
Alexey Shcherbak
Top achievements
Rank 1
 answered on 26 Jul 2010
7 answers
255 views
Hi,

I am using WebAii for automating silverlight application.
How can i set focus to a silverlight control lets say Textbox.
I am not seeing any method or property for that.
Can anybody help me......

Thanks
Kiran
Konstantin Petkov
Telerik team
 answered on 24 Jul 2010
4 answers
193 views
Hi,

I am using WebAii 2.0 for UI testing.
I would like to know how can i get the current mouse location.

Thanks
Kiran
Kiran
Top achievements
Rank 2
 answered on 24 Jul 2010
6 answers
209 views
Hi,

I am currently trying to use WebAii to automate some of the test cases in our application. Our application contains a lot of Popup, so being able to provide automation on the Popups is crucial to our test framework.

The problem right now is that after creating a Popup using new Popup() and invoking Telerik.WebUI.PopupTracker.Track(popup) in our class, and invoking RefreshVisualTrees() in my unit test method, the number of items in the Popups collection of the Silverlight app is still at 0. Any insight?

A developer told me that our Popups are wrapped inside our own class. Would that be an issue?

Regards,
Edmond Chan
Cody
Telerik team
 answered on 23 Jul 2010
2 answers
157 views
Hi,

I am using WebAii 2.0 for automating Silverlight 3 application.

I have a datagrid in which i have binded  an ObservableCollection of Student objects.
So in my test can i get the ItemsSource from the datagrid and manipulate by any means in my test case.

<data:DataGrid Name="StudentGrid" ItemsSource="{Binding StudentList}" >
 </data:DataGrid>


Thanks
Kiran
Kiran
Top achievements
Rank 2
 answered on 23 Jul 2010
3 answers
207 views
Hi Guys,

I'm trying to retrieve some txt from a web page. The text may change from time to time as it 
indicates a stat etc. so fetching is based on the element's location in the page.  

Does Webaii has a method equivalent to GetText()? I'm used to 'fetch' text using xpath using expressions like
String txt = GetText(xpath); etc. 
I've been trying to use <HtmlTableRow> and <HtmlTable> with no success.

For example, I need to retrieve the Task id value (Which currently is 1081 but may change the next run).

Ta. 
<tr> 
<td rowspan="1"  colspan="1" >Status</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task id</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >1081</span> 
</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task Assigned to</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >Tester01</span> 
</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task Due by</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >02/07/2010</span> 
</td> 
</tr> 
 

 

Cody
Telerik team
 answered on 22 Jul 2010
11 answers
139 views
Hello,
I suspect a problem with migrating from WebAii 1.1 to WebAii 2.0.
One of our tests is like this: button should be clicked, then it causes an alert to popup.
After that alert is analyzed and closed.

But after clicking the button the alert is immediately closed without any opportunity to check it up.

The code:
Settings mySettings = new Settings(BrowserType.InternetExplorer, @"c:\log\");
             
Manager myManager = new Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.NavigateTo("file:///d:/test.html");
 
Element mybtn = myManager.ActiveBrowser.Find.ByName("press_me");
myManager.Desktop.Mouse.Click(MouseClickType.LeftClick, mybtn.GetRectangle()); //after that the dialog window must appear, but it closes immediately
 
myManager.Dispose();
and the HTML file:
<html>
<head>
<title>Click test.</title>
</head>
<body>
<input type="button" name="press_me" value="press_me" onclick="alert('Hello world!');"/>
</body>
</html>

I have the latest version of WebAii framework (2010.2 713). All the other ways of clicking (eg element.Click()) produce the same output.

Regards,
Yaroslav
kovyar
Top achievements
Rank 1
 answered on 22 Jul 2010
7 answers
214 views
Hi,

I am unable to run the scripts in QuickStarts_VSTs_VB project. when i am running any method it is throwing error. below is the error in result file

Initialization method QuickStarts_VSTS_VB.BrowserActions.MyTestInitialize threw exception. System.Configuration.ConfigurationErrorsException:  System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for WebAii.Settings: Could not load file or assembly 'ArtOfTest.WebAii, Version=2.1.0.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified

Pls suggest me what is wrong

thanks

Ravi
ravi
Top achievements
Rank 1
 answered on 22 Jul 2010
3 answers
153 views
Can I use the WebAii framework without using the installer.
Ideally I'd just like to be able to reference the binaries.
Cody
Telerik team
 answered on 21 Jul 2010
1 answer
152 views
Is there any API we can use to get the  message display on the messagebox.eg:when user log in to the system the usernam is null,click the log in button ,the warnning message like "please input username".
Kiran
Top achievements
Rank 2
 answered on 21 Jul 2010
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?