OS: Windows 10
Firefox Version 47.0
TTS version 2016.1.330.0
Hi,
Am using above configurations for automation.
In my application, there is an iframe.
Problem is - could not access elements in this using chrome browser.
The Same code is working in Firefox but not in Chrome.
Below is my code:
ActiveBrowser.WaitForFrame(new FrameInfo("creditCardComponent", "", "~/creditcard.jsp", "", 0, false, false, ""), 20000);
Browser ccframeinfoo = ActiveBrowser.Frames.ById("creditCardComponent");
HtmlInputText ccno1 = ccframeinfoo.Find.ById<HtmlInputText>("ccno1-inputEl"); ccno1.Text = "xxxx";
HtmlInputText ccno2 = ccframeinfoo.Find.ById<HtmlInputText>("ccno2-inputEl"); ccno2.Text = "xxxx";
HtmlInputText ccno3 = ccframeinfoo.Find.ById<HtmlInputText>("ccno3-inputEl"); ccno3.Text = "xxxx";
HtmlInputText ccno4 = ccframeinfoo.Find.ById<HtmlInputText>("ccno4-inputEl"); ccno4.Text = "xxxx";
Error: Exception executing coded step: 'Enter the card number'.
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)
FYI- used ActiveBrowser.WaitUntilReady(); and ActiveBrowser.RefreshDomTree(); but did not solve my issue.
Can you please help me on this issue.
Thanks in Advance!
Hello! I have a test that uses both "Wait for exists" and "Wait for existsNot". This test work flawlessly for IE but when executed on firefox the "Wait for exists" actions fails 50% of the time and the "Wait for existsNot" fails 100% of the time. I have tried searching on the forums for a solution on the forums, but a delay execution action in this case simply will not do because the loading times are very variable and I want to emphasize efficiency on my test. If any solutions are available or more information on my problem is needed, please let me know, thanks!
Unexpected error while waiting on condition. Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.Browser.ArtOfTest.Common.IAutomationHost.EnsureStateIsCurrent()
at ArtOfTest.Common.Design.Extensibility.Descriptors.VerificationDescriptor.<
PerformWait
>b__f(IAutomationHost hst, DescriptorValueStore values)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)
Just a quick question......
http://docs.telerik.com/teststudio/features/test-runners/integrate-task-scheduler-with-artoftest
Using the method as outlined in the link above, if I wanted to run multiple tests, would it be necessary for me to manually wait in between different tests? Or would it be possible for me to copy that line over multiple times to run my test lists, and they'll just run one of the next until they're finished?
Greetings,
I'm using a coded step to extract the text from a RichTextBox control in WPF and set an extraction for later comparison. Since the RichTextBox is already identified by a named Element in the Elements Repository, I'd like to lookup the element by name there, then use the element's find expression to create a new XamlFindExpression to give to the Find.ByExpression method. This way I can avoid duplicating the logic.
Is this possible, or is the duplicated expression the only way?
Greetings,
As we use Coded Steps more, we are eager to use the features in C# 6 in them. It appears that C# 6 features are not yet supported in Test Studio code editor. Is this the case? If so, could you let us know when it will be supported?
I am facing some difficulties iterating over a list of records, each of which is wrapped inside <tr>...</tr>
The logic I am following is:
========================
while ( FIRST_TR exists or visible)
* press the delete buton
* wait 250 ms
========================
This is not working, as I believe once the element is removed, it breaks out of the loop. So I checked EnsureStatIsCurrent, yet no juice.
Is there's an easy way to get this done with Telerik Test Studio ?
Thank you
Hi Team,
My requirement is that on a page, there are multiple actions performed on different frames(layouts).
Eg : Enter the name. Click on Add. Verify Name is added in Select List
So the above three events are happening on different areas of a single page.
Can anyone guide me how to implement auto scroll such that wherever actions are performed, page scroll should be performed ?