Thanks for the reply
Boyan Boev.
I have followed the
article while i am recording the my Test case.
I don't have any frames with
dynamic frame Id or name. I am working only on one URL so there is no "BaseURL feature" here,but still i am facing this problem.
So i tried in different way like this:
Log.WriteLine("Test1");
HtmlSpan sp=Pages.ContactsMyActiveContacts.FrameViewArea2.Find.ByExpression<HtmlSpan>("tagname=span","textcontent=New");
Log.WriteLine("Test");
This line has thrown exception while running on Chrome and Firefox but it is working fine for IE9.
'08-01-2013 13:47:22' - Using 'Chrome' version '23.0.1271.97' as default browser.
'08-01-2013 13:47:37' - 'Pass' : 1. Navigate to : 'http://mytestapp/'
'08-01-2013 13:47:37' - 'Pass' : 2. Handle 'Logon' dialog.
'08-01-2013 13:47:48' - 'Pass' : 3. Navigate to : 'http://mytestapp/'
'08-01-2013 13:48:10' - 'Pass' : 6. Click 'SettingsNobrTag'
'08-01-2013 13:48:40' - 'Pass' : 7. Click 'A04Link'
'08-01-2013 13:48:45' - 'Pass' : 8. Wait for '5000' msec.
'08-01-2013 13:48:45' - LOG: Test1
'08-01-2013 13:49:19' - 'Fail' : 9. [Test_1_CodedStep] : Click 'NewSpan'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Test_1_CodedStep] : Click 'NewSpan''.
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo)
Can please give some solution for this?
.