Skip to content

ScrollTo() failing with `Argument is of an illegal typeUnderTest.Strategy.Selenium.PageElement`

image

[14:48:40 INF]   Executing step 'And the bpa user has selected to view the decision dockets from the side menu'
[14:48:42 ERR] Argument is of an illegal typeUnderTest.Strategy.Selenium.PageElement (Parameter 'arg')   at OpenQA.Selenium.Remote.RemoteWebDriver.ConvertObjectToJavaScriptObject(Object arg)
   at OpenQA.Selenium.Remote.RemoteWebDriver.ConvertArgumentsToJavaScriptObjects(Object[] args)
   at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptCommand(String script, String commandName, Object[] args)
   at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScript(String script, Object[] args)
   at UnderTest.Strategy.Selenium.ICurrentWebDriverAwareExtensions.ExecuteScript[T](ICurrentWebDriverAware instance, String script, Object[] args)
   at UnderTest.Strategy.Selenium.PageElement.ExecuteScript[T](String script, Object[] args)
   at UnderTest.Strategy.Selenium.PageElementExtensions.ScrollTo(PageElement instance)
   at Vac.Csa.AcceptanceTests.Sites.Pages.DocsAppDecisionDocketPage.OpenDecisionDocketsFromSideMenu() in Sites\Pages\DocsAppDecisionDocketPage.cs:line 195
   at Vac.Csa.AcceptanceTests.Services.DocsAppDecisionDocketService.OpenDecisionDocketsFromSideMenu() in \Services\DocsAppDecisionDocketService.cs:line 60
   at Vac.Csa.AcceptanceTests.FeatureHandlers.DocsApp.DecisionDocketSearchHandler.GivenTheBpaUserHasSelectedToViewTheDecisionDocketsFromTheSideMenu() in FeatureHandlers\DocsApp\DecisionDocketSearchHandler.cs:line 30
Edited by Ron Myers
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information