microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
523 stars 289 forks source link

[BUG] client.GetGridItemsV2().Value.Count throwing exception after wave 2 update in Test environment #1177

Open Jyothi-Swaroop-Charla opened 3 years ago

Jyothi-Swaroop-Charla commented 3 years ago

Exception:

OpenQA.Selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":".wj-colheaders"}   (Session info: chrome=92.0.4515.131)   Stack Trace:       at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)    at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)    at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByClassName(String className)    at OpenQA.Selenium.By.<>c__DisplayClass20_0.<ClassName>b__0(ISearchContext context)    at OpenQA.Selenium.By.FindElement(ISearchContext context)    at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)    at Microsoft.Dynamics365.UIAutomation.SuccessHubTesting.Extensions.<>c.<GetGridItemsV2>b__0_0(IWebDriver driver) in D:\a\1\s\Src\Microsoft.Dynamics365.UIAutomation.SuccessHubTesting\Microsoft.Dynamics365.UIAutomation.SuccessHubTesting\Extensions.cs:line 21    at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params)    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)    at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute(IWebDriver driver)    at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate)    at Microsoft.Dynamics365.UIAutomation.SuccessHubTesting.Extensions.GetGridItemsV2(WebClient webClient)

ewingjm commented 3 years ago

@Jyothi-Swaroop-Charla GetGridItemsV2 isn't part of EasyRepro. I think this functionality is broken in wave 2 but just be aware it'll still be broken even when the EasyRepro update goes out unless you go back to using the EasyRepro API.