Hi,
Following is the test case captured in version 2013.1.1120.0
Same test case when I customize Code it fails.
I have verified the Element explorer for the Element
I have no clue what has gone wrong. In log following is the error information
We are using Visual studio 2012 for capturing and executing test cases.
Please help ASAP.
Following is the test case captured in version 2013.1.1120.0
Same test case when I customize Code it fails.
[CodedStep(@
"Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'"
, RequiresSilverlight =
true
)]
public
void
DatalogPreferencePage_Functionality_CodedStep15()
{
// Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'
Assert.AreEqual(
false
, Pages.PC5xxLogin.SilverlightApp.Item0Customtextbox0.IsEnabled,
string
.Format(
"Verify Item0Customtextbox0.IsEnabled \'Equal\' \'False\' failed. Actual value \'{0}\'"
, Pages.PC5xxLogin.SilverlightApp.Item0Customtextbox0.IsEnabled));
}
I have verified the Element explorer for the Element
Item0Customtextbox0
if it is there. But element explorer also have the element in same hierarchy.I have no clue what has gone wrong. In log following is the error information
'1/3/2014 6:18:16 PM' - 'Fail' : 7. [DatalogPreferencePage_Functionality_CodedStep15] : Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'", RequiresSilverlight = true
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[DatalogPreferencePage_Functionality_CodedStep15] : Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'", RequiresSilverlight = true'.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' ContentInnerBorder] AND [XamlTag 'Exact' border][XamlPath 'Exact' /contentpresenter[name=ContentElement]/_adminpassword[0]/dashboardcontrol[0]/border[0]/grid[0]/border[0]/contentpresenter[0]/radbusyindicator[0]/grid[0]/contentcontrol[name=Content]/contentpresenter[0]/grid[name=LayoutRoot]/customtextbox[0]]
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr, Boolean waitOnElement, Int32 timeout)
at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr)
at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](XamlFindExpression expr)
at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](String[] clauses)
at TelerikTestAutomation.Pages.PC5xxLoginPage.SilverlightAppElement.get_Item0Customtextbox0() in d:\Cirrus\Cirrus_TFS\Cirrus UI\PC550\Cirrus Test Automation\TelerikTestAutomation_Local\TelerikTestAutomation\Pages.g.cs:line 4256
at TelerikTestAutomation.Setup_Page.Data_Log_Preferences.DatalogPreferencePage_Functionality.DatalogPreferencePage_Functionality_CodedStep15() in d:\Cirrus\Cirrus_TFS\Cirrus UI\PC550\Cirrus Test Automation\TelerikTestAutomation_Local\TelerikTestAutomation\Setup Page\Data Log Preferences\DatalogPreferencePage_Functionality.tstest.cs:line 496
We are using Visual studio 2012 for capturing and executing test cases.
Please help ASAP.