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

[BUG] <Getting webdriver exception "unknown error: unable to discover open pages" when running the test on server through ADO test plan. Code works locally> #1411

Open
3 tasks
Himanshukaura21 opened this issue Feb 26, 2024 · 0 comments
Labels

Comments

@Himanshukaura21
Copy link

Bug Report

Please help! This is happening for any test we're running through ADO test plan. We get Webdriver exception below when running on a Server VM using Edge Driver. The script works fine when running locally but fails repeatedly on server.

Error message:
OpenQA.Selenium.WebDriverException: unknown error: unable to discover open pages

Stack trace:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.WebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities) at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeDriverService service, EdgeOptions options, TimeSpan commandTimeout) at Microsoft.Dynamics365.UIAutomation.Browser.BrowserDriverFactory.CreateWebDriver(BrowserOptions options) in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Browser\BrowserDriverFactory.cs:line 42 at Microsoft.Dynamics365.UIAutomation.Browser.InteractiveBrowser.get_Driver() in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Browser\InteractiveBrowser.cs:line 85 at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult,T1,T2,T3,T4,T5](BrowserCommandOptions options, Func7 delegate, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Browser\BrowserPage.cs:line 242
at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.Login(Uri orgUri, SecureString username, SecureString password, SecureString mfaSecretKey, Action`1 redirectAction) in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Api.UCI\WebClient.cs:line 142
at Microsoft.Dynamics365.UIAutomation.Api.UCI.OnlineLogin.Login(Uri orgUrl, SecureString username, SecureString password, SecureString mfaSecretKey) in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Api.UCI\Elements\OnlineLogin.cs:line 40
at Microsoft.Dynamics365.UIAutomation.Sample.UCI.CreateContactUCI.UCITestCreateContact() in D:\a\1\s\Pipeline\EasyRepro_NEW\Microsoft.Dynamics365.UIAutomation.Sample\UCI\Create\CreateContact.cs:line 27
Attachments ()

EasyRepro Version
latest

UCI or Classic Web

  • UCI (XrmApp)

Online or On Premise

  • Online

Browser

  • Edge

Describe the bug

Special formatting / display

Code to reproduce

Expected behavior

Screenshots

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant