Given: file that needed to be downloaded by clicking on button(btnExportProfile)
Code:
DownloadDialogsHandler part1_0 =
new
DownloadDialogsHandler(myManager.ActiveBrowser, DialogButton.SAVE, @
"C:\"
, myManager.Desktop);
SaveAsDialog part2_0 = SaveAsDialog.CreateSaveAsDialog(myManager.ActiveBrowser, DialogButton.SAVE, @
""
, myManager.Desktop);
IE9DownloadCompleteNotificationBar dlComplete1 =
new
IE9DownloadCompleteNotificationBar(myManager.ActiveBrowser, DialogButton.CLOSE);
myManager.DialogMonitor.AddDialog(part2_0);
myManager.DialogMonitor.AddDialog(dlComplete1);
myManager.ActiveBrowser.Find.ById<HtmlControl>(
"btnExportProfile"
).Click();
System.Threading.Thread.Sleep(10000);
part1_0.WaitUntilHandled(40000);
part2_0.WaitUntilHandled(40000);
dlComplete1.WaitUntilHandled(50000);
Hi
We are using ArtOfTest(WebAii) framework. All the testers were working fine and suddenly started failing from past few days with the following error.
Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
The reason for this error was because of some settings which was globally made on all our machines without our knowledge.
Solution:
Allow third-party browser extensions setting in IE should be enabled.
This setting can be found For IE8 at : IE->Tools->Internet Options->Under 'Advanced Tab'->Under Heading 'Browsing'.
This setting can be added if found valid for everyone @ Configure the Browser
Thanks,
Kiran K N.
Hi Team,
Im Using webaii framework
for
my automation.
I have a page
in
there when we click a button it ll show one pop up. tried
this
scenerio
in
webaii with below code.
Manage.ActiveBrowser.Actions.Click(button);
It clicks the button
as
expected, but when pop up was thrown by webpage, code flow got stopped it didnt cross the above command.
Is it any other way to click a element after click, browser should be free and it ready
for
next command.
Hi all,
I'm currently using the framework to create performance tests for a WPF application. I need to record the time between when I click on a combo box and when the combo box is actually present.
I can't see an event that I can attach too that would tell me the combobox was down, you can see if it is down but no event.
Here's what I mean:
IList<ComboBox> allByType = wpfWindow.Find.AllByType<ComboBox>();
IEnumerable<ComboBox> comboBoxs = allByType.Where(x => x.Text.Contains(
"Test"
));
ComboBox comboBox = comboBoxs.First();
_stopWatch = Stopwatch.StartNew();
comboBox.OpenDropDown(
true
);
//Check to see if drop down is present or fire event
Console.WriteLine(
"Total dropdown loading time (ms): "
+ _stopWatch.Elapsed.TotalMilliseconds);
Thanks,
Sara
When I use the following statement to clear up the cache and cookies
ActiveBrowser.ClearCache(ArtOfTest.WebAii.Core.BrowserCacheType.History);
I get the following exception
"Clearing the browser cache is not yet supported for Safari"
How do i prevent Safari from saving cookies and not to get this error.
<
telerik:RadSplitter
ID
=
"RadSplitterActivityPage"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
Orientation
=
"Vertical"
>
<
telerik:RadPane
ID
=
"RadPaneFilter"
runat
=
"server"
Width
=
"20px"
>
<
telerik:RadSlidingZone
ID
=
"RadSlidingZoneFilter"
runat
=
"server"
>
<
telerik:RadSlidingPane
ID
=
"RadSlidingPageFilter"
runat
=
"server"
Width
=
"200px"
Title
=
"Filter"
Scrolling
=
"Y"
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanelFilter"
runat
=
"server"
Height
=
"99%"
>
<
div
style
=
"margin:5px;"
>
<
label
class
=
"riLabel"
>Start Date:</
label
>
<
br
/>
<
telerik:RadDateTimePicker
ID
=
"RadDateTimePickerStartDate"
runat
=
"server"
Width
=
"100%"
>
</
telerik:RadDateTimePicker
>
<
br
/>
<
label
class
=
"riLabel"
>End Date:</
label
>
<
br
/>
<
telerik:RadDateTimePicker
ID
=
"RadDateTimePickerEndDate"
runat
=
"server"
Width
=
"100%"
>
</
telerik:RadDateTimePicker
>
Etc, etc, etc......
System.InvalidOperationException:
Sequence contains no elements
at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType
browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle
windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType
browserToLaunch, Boolean waitForBrowserToConnect)
at
ActaNova.TWebTest.Core.Utilities.ApplicationUtility.GetManager(String url,
HtmlFindExpression waitForElementExistsFindEx) in
c:\Development\AN\webaii\WebTest\TWebTest.Core\Utilities\ApplicationUtility.cs:line
632