Skip to content

[BUG] Entity.SelectForm() throwing StaleElement exception #870

Description

@imartinflores

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • UCI (XrmApp)

Online or On Premise

  • Online

Browser

  • Chrome

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions