Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyNotFoundException in XrmBrowser.Grid.Search #33

Closed
dynamicscode opened this issue Oct 5, 2017 · 3 comments
Closed

KeyNotFoundException in XrmBrowser.Grid.Search #33

dynamicscode opened this issue Oct 5, 2017 · 3 comments

Comments

@dynamicscode
Copy link

XrmBrowser.Grid.Search types a string in the search text box but it returns the following error.

An exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in Microsoft.Dynamics365.UIAutomation.Browser.dll but was not handled in user code

Additional information: The given key was not present in the dictionary.

Stack trace

at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Microsoft.Dynamics365.UIAutomation.Api.XrmGridPage.<>c__DisplayClass11_0.<Search>b__0(IWebDriver driver) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Api\Pages\XrmGridPage.cs:line 293 at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\DelegateBrowserCommand.cs:line 28
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\BrowserCommand.cs:line 136 at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute(IWebDriver driver) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\BrowserCommand.cs:line 36
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\BrowserPage.cs:line 180
at Microsoft.Dynamics365.UIAutomation.Api.XrmGridPage.Search(String searchCriteria, Int32 thinkTime) in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Api\Pages\XrmGridPage.cs:line 290
at Microsoft.Dynamics365.UIAutomation.Sample.CreateAccountTests.TestCreateNewAccount() in C:\Repository\Git\EasyRepro\Microsoft.Dynamics365.UIAutomation.Sample\CreateAccount.cs:line 45

@dtu11
Copy link
Member

dtu11 commented Oct 5, 2017

Which version are you working with?

@dtu11
Copy link
Member

dtu11 commented Oct 11, 2017

I tested the Search Api with version 8.2 and unable to repro the exception. Would you mind sharing the test code as well?

@dynamicscode
Copy link
Author

I was testing on v9.0, and I realized the refactoring for v9.0 is being refactored after looking at other posts. Thanks for an update!

@dtu11 dtu11 closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants