Hi,
Please help me out on this, I'm running a data driven test which encounters this error on a drop down step. I'm pretty sure that I have recorded the steps correctly. But for some reason this error keeps on popping on several iterations.
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
--- End of inner exception stack trace ---
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'SelectDropDown',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'V:3',ClientId:'Client_968eb438-6eb9-48bb-9876-4b8a276abfb7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
--- End of inner exception stack trace ---
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
--- End of inner exception stack trace ---
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'SelectDropDown',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'V:3',ClientId:'Client_968eb438-6eb9-48bb-9876-4b8a276abfb7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ApplicationException: Unexpected error thrown while setting the dropdown ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: DropDown was unable to find the item '3' in the dropdown requested. DropDown had the following values only:
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
--- End of inner exception stack trace ---
at ArtOfTest.InternetExplorer.IECommandProcessor.SelectDropDown(IHTMLElement target, Int32 index, String text, Boolean useValue)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
I've tried the selection through Text, Values and Index already but there are iterations which are still being failed.
Birth Region field will only be available once Country of birth is selected, the same can be said on the birth district field. (see attached vid)
I have placed a script step prior to the selection step to help find the element though it has helped significantly as it has not failed most of the data driven test there are still iterations which are failing.
https://www.dropbox.com/s/7mj8sas72n0acsp/trips_05112015.swf?dl=0
Hello
I have the following Xaml Path
/adornerdecorator[0]/adornerlayer[0]/backstageadorner[0]/backstage[0]/border[0]/popupcontentdecorator[0]/dockpanel[0]/border[1]/contentpresenter[name=PART_SelectedContentHost]/opendocumentview[0]/border[0]/contentpresenter[0]/grid[0]/contentcontrol[name=FindEntity]/contentpresenter[0]/findentityview[0]/border[0]/contentpresenter[0]/grid[name=FindEntity]/contentcontrol[name=Search]/contentpresenter[0]/opendocumentsearchview[0]/border[0]/contentpresenter[0]/grid[0]/contentcontrol[name=TypeFacets]/contentpresenter[0]/searchtypefacetsview[0]/border[0]/contentpresenter[0]/stackpanel[0]/listbox[name=ResultsView]/elementchrome[name=chrome]/scrollviewer[0]/grid[0]/scrollcontentpresenter[name=PART_ScrollContentPresenter]/itemspresenter[0]/stackpanel[0]/listboxitem[3]/border[name=Bd]/contentpresenter[0]/grid[0]/textblock[0]
In the attached Find-Element.png I am trying to modify the settings to Find this element with the text content "Formulas"
So far I have come up with
\\listbox[name=ResultsView]\\scrollcontentpresenter[name=PART_ScrollContentPresenter]\\listboxitem[3]\\textblock[0]
I am unable to determine these two XamlTags
1) listboxitem[3]
2) textblock[0]
So how to index into an element collection on the Find Element Settings Page?
I'm curious if it's possible to have a web test with a step that closes the browser but then is able to continue running the test in the next step.
I've tried using "Manager.ActiveBrowser.Close();" but that closes the browser and then ends the test. The next step that I have reopens the browser and navigates to the desired page but it never seems to go onto the next step once the browser closes. Is there a way to use a similar step that would close or restart the browser without ending the test?
Hi,
I have downloaded a trial version and i have been trying to get my hands on the test studio. I am having issues capturing recordings due to improper placement of the Grid, text fields etc while highlighting. The Context menu appears very far as the tester cannot reach it and it disappear. The context menu also keeps blinking and is very irritating.
Please see to the file attached.
System Specs:
Windows 7
Intel Core 2 Duo
Ram: 4 GB
32 bit operating system
Resolution : 1400 x 1050
<configSections> <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" /> <section name="WebAii.Settings.Web" type="ArtOfTest.WebAii.Core.WebSettingsConfigSectionHandler, ArtOfTest.WebAii" /><section name="WebAii.Settings.Wpf" type="ArtOfTest.WebAii.Core.Settings.WpfSettings, ArtOfTest.WebAii" /> </configSections><WebAii.Settings.Wpf "DefaultWPFApplication":"<path.exe"> />Hi,
In Load Testing I Edited the json content(Serial number-Primary Key) value in the Captured Traffic POST Element.
After I run with the Edited value, the Database gets affected. The respective data stored in the database(Oracle) Table.
Next i have tried with Data driven (using EXCEL Sheet. I am not getting any error. But there was no affect in Database.Values not stored in the Database Table.
I am not sure whether the Excel Data column value that I was Replaced in the json script correct format.
So tell me how to replace the content value with the Excel column value.
Herewith I have attached you the reference screenshots.
Thanks
Saravanan
<html>
<head></head>
<body>
<iframe id="casesFrame" width="99%" height="418" frameborder="0" src="../cases/main_init" name="casesFrame" style="">
<html class=" ext-strict x-viewport">
<head></head>
<body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
<ul id="ext-gen37" class="x-tree-root-ct x-tree-arrows">
<li class="x-tree-node">
<a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
<span unselectable="on">New case</span>
</a>
</li>
</ul>
</body>
</html>
</iframe>
</body>
</html>
I have the following structure in my page, but I get error while performing an event "Click" link "New Case" this is iframe.
I am using the code following in "Test Studio":
Browser casesFrame = Manager.ActiveBrowser.Frames.ById ("casesFrame");
HtmlAnchor NewCase = casesFrame.Find.ByExpression <HtmlAnchor> ("InnerText = ~ New case", "tagname = a");
Assert.IsNotNull (NewCase);
newCase.Click (); //Does not perform the event