EasyRepro Version
UCI or Classic Web
Online or On Premise
Browser
Describe the bug
Using Entity.SelectForm() is throwing StaleElement exception.
Code to reproduce
XrmApp.Entity.SelectForm(formName);
XrmApp.Entity.SelectForm(formName);
-->
Expected behavior
Select the correct form and wait until page is loaded
Screenshots
Additional context
Stack Trace:
OpenQA.Selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
(Session info: chrome=81.0.4044.138)
RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) RemoteWebElement.Execute(String commandToExecute, Dictionary2 parameters)
RemoteWebElement.get_Location()
InteractiveBrowser.EventDriver_ElementClicked(Object sender, WebElementEventArgs e)
EventFiringWebDriver.OnElementClicked(WebElementEventArgs e)
EventFiringWebElement.Click()
<>c.b__2_0(IWebElement e)
SeleniumExtensions.WaitUntil(ISearchContext driver, Func2 searchFunc, Nullable1 timeout, Action1 successCallback, Action failureCallback) SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable1 timeout, Action1 successCallback, Action failureCallback) SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable1 timeout, Action1 successCallback, String exceptionMessage) SeleniumExtensions.ClickWhenAvailable(ISearchContext driver, By by, Nullable1 timeout, String errorMessage)
<>c__DisplayClass158_0.b__0(IWebDriver driver)
DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params) 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)
BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate)
WebClient.SelectForm(String formName)
Entity.SelectForm(String formName)
EasyRepro Version
UCI or Classic Web
Online or On Premise
Browser
Describe the bug
Using Entity.SelectForm() is throwing StaleElement exception.
Code to reproduce
XrmApp.Entity.SelectForm(formName);
-->
Expected behavior
Select the correct form and wait until page is loaded
Screenshots
Additional context
Stack Trace:
OpenQA.Selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
(Session info: chrome=81.0.4044.138)
RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters) RemoteWebElement.Execute(String commandToExecute, Dictionary2 parameters)RemoteWebElement.get_Location()
InteractiveBrowser.EventDriver_ElementClicked(Object sender, WebElementEventArgs e)
EventFiringWebDriver.OnElementClicked(WebElementEventArgs e)
EventFiringWebElement.Click()
<>c.b__2_0(IWebElement e)
SeleniumExtensions.WaitUntil(ISearchContext driver, Func
2 searchFunc, Nullable1 timeout, Action1 successCallback, Action failureCallback) SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable1 timeout, Action1 successCallback, Action failureCallback) SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable1 timeout, Action1 successCallback, String exceptionMessage) SeleniumExtensions.ClickWhenAvailable(ISearchContext driver, By by, Nullable1 timeout, String errorMessage)<>c__DisplayClass158_0.b__0(IWebDriver driver)
DelegateBrowserCommand
1.ExecuteCommand(IWebDriver driver, Object[] params) 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)BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate)
WebClient.SelectForm(String formName)
Entity.SelectForm(String formName)