<
html
>
<
head
>
<
body
class
=
"yui-skin-fmc skin-lincoln nameplate nameplate-MKS2012 selldown"
>
<
iframe
id
=
"_yuiResizeMonitor"
title
=
"Text Resize Monitor"
style
=
"position: absolute; visibility: visible; width: 2em; height: 2em; top: -31px; left: 0pt; border-width: 0pt;"
>
<
div
id
=
"global-flips"
>
<
div
id
=
"page"
>
<
div
id
=
"header"
class
=
"nameplate nameplate-MKS2012 selldown"
>
<
div
id
=
"view-hd-line"
>
<
div
id
=
"view-container"
class
=
"view-incentives"
>
<
div
id
=
"view"
>
<
div
id
=
"view-bd"
class
=
"view-bd"
>
<
div
class
=
"incentives_header"
>
<
div
class
=
"incentives-select-vehicle"
>
<
div
id
=
"incentives-content"
data-year
=
"2012"
data-model
=
"MKS"
data-iframebase
=
"https://lincoln-incentives.fdv3.com//Page/"
>
<
iframe
id
=
"incentives-iframe"
class
=
"active"
frameborder
=
"0"
src
=
"https://lincoln-incentives.fdv3.com//Page/?zipcode=48152&year=2012&make=Lincoln&model=MKS&site=NG&app_context=ngbs_sploffr"
>
<
html
>
<
head
>
<
body
>
<
script
src
=
"/Scripts/Lincoln.Omniture.Control.js"
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
<
div
class
=
"incentive"
>
<
script
type
=
"text/javascript"
>
<
div
class
=
"flipFilter"
>
<
select
style
=
"display : none;"
name
=
"modelDescription"
>
<
div
>
<
div
class
=
"zipChange"
>
If i want to find <div class="zipChange"> under <iframe id="incentives-iframe" class="active" frameborder="0" src="https://lincoln-incentives.fdv3.com//Page/?zipcode=48152&year=2012&make=Lincoln&model=MKS&site=NG&app_context=ngbs_sploffr">
how can do it??
In FireFox 10:
I have a confirm dialog that pops up asking if I would like to resend information.
Neither the Confirm or OnBeforeUnload dialog handles it properly (Resend does not appear in the list of button labels). This problem occurs in IE as well (Window named: Windows Internet Explorer, button named: Retry) but I have gotten around it with the blind Enter KeyPress.
I have attempted to make a Generic dialog handler for it as well as a blind Enter KeyPress, but both have failed.
Suggestions?
Generic dialog failure log:
'2/29/2012 5:44:48 PM' - 'Fail' : 43. Handle 'Generic' dialog. -- FIREFOX
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Timed out waiting '5000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'2/29/2012 5:44:48 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'2/29/2012 5:44:48 PM' - Overall Result: Fail
'2/29/2012 5:44:48 PM' - Duration: [1 min: 9 sec: 337 msec]
------------------------------------------------------------
<<< Test-as-Step '<xxxxxedited outxxxxx>.tstest' log ends.
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
namespace <xxxedited outxxxxx>
{
public class <xxxxxedited outxxxxx> : BaseWebAiiTest
{
#region [ Dynamic Pages Reference ]
private Pages _pages;
public Pages Pages
{
get
{
if (_pages == null)
{
_pages = new Pages(Manager.Current);
}
return _pages;
}
}
#endregion
[CodedStep(@"New Coded Step")]
public void <xxxxedited outxxxxx>()
{
Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 200);
}
}
}