Fter Win 10 Update the automation of the Edge browser stops working

Not reproducible Issue #23414052

Details

Author
Gerhard K.
Created
Sep 7, 2019
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Hi,
I am using Selenium and .net to automate the Edge Driver in a Win 10 machine and it works very well with V17.17.xxx.
After installing an update Version V18.xx is running now, and I found out, that the web drive is now an Feature …
I successfully istalled this Feature, so I could connect to the web site as before, but now, the .Text property Fails after the second call wit an 'Unknown error’.

Is there any Chance to get it running again, or do I have to rollback the update of Win 10, and if so, how can I do it?

hanks for helping.

With best regards

Gerhard

Attachments

0 attachments

    Comments and activity

    • Hi!

      Thank you for contacting us about this issue! It is possible that your .NET project is still using the old version of the webdriver which may result in issues. I use Selenium daily with .NET and I have not experienced this issue with the Text property. In your project, could you provide the IWebdriver with the direct file location of the new webdriver. It should be located at C:\Windows\SysWOW64\MicrosoftWebDriver.exe. Let me know if this does not resolve the issue.

      Thanks,

      Zach

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

    • Hi,
      I looked at the Directory you told me, and it is a file there, Version 10.0.18326.1, no idea if this is correct or not.
      If this Version is wrong, how can I get the correct Version?

      They told me it is now a ‘feature’ and nothing can be done … really a nice idea.

      With best regards

      Gerhard

    • Here the Infos I get from the exception:

      StackTrace:
      OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
      OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary2 parameters)
      OpenQA.Selenium.Remote.RemoteWebElement.get_Text()

      HResult: -2146233088

      Message: “An unknown error occurred while processing the specified command.”

      With best regards

      Gerhard

    • Hi,
      sorry tried this, no Chance, same Problem …

      'EdgeHtml
      Dim service As EdgeDriverService = EdgeDriverService.CreateDefaultService("C:\Windows\SysWOW64", “MicrosoftWebDriver.exe”)
      Dim options As EdgeOptions = New EdgeOptions()
      options.PageLoadStrategy = PageLoadStrategy.Eager
      'myGinaBrowser = New GinaBrowser(New Edge.EdgeDriver(options), 10, BrowserType.EdgeHtml)
      myGinaBrowser = New GinaBrowser(New Edge.EdgeDriver(service, options), 10, BrowserType.EdgeHtml)
      GinaLog.AddInfo(“We are using the EdgeHtml browser today.”)

    • Hi,
      I found a property .VerboseLog… or something else, so I set this to true, here what I get, when I try to read out the text of an element:

      [22:45:41.585] - Received a request: POST http://localhost:58435/session/E8D4F871-665A-4628-92FF-248A74818695/element
      [22:45:41.585] - {"using":"css selector","value":"#border_currentpage"}

      [22:45:41.793] - Response: {"value":{"ELEMENT":"64fe9566-e22b-4f20-9337-7fc9c739cdfe","element-6066-11e4-a52e-4f735466cecf":"64fe9566-e22b-4f20-9337-7fc9c739cdfe"}}

      [22:45:41.793] - Waiting for new request…

      [22:45:41.797] - Received a request: GET http://localhost:58435/session/E8D4F871-665A-4628-92FF-248A74818695/element/64fe9566-e22b-4f20-9337-7fc9c739cdfe/text
      [22:45:41.798] -

      [22:45:41.810] - Response: {"value":{"error":"unknown error","message":"An unknown error occurred while processing the specified command.","stacktrace":""}}

      [22:45:41.812] - Waiting for new request…

    • Hi!

      I am looking at the code you posted and is there a restriction that keeps you from simply using the EdgeDriver class? You are currently creating a session by hand and I am inclined to believe this is unconventional. I am unfamiliar with GinaBrowser, is this propietary code?

      Please try using the EdgeDriver object from OpenQA.Selenium and let me know how this goes. Before trying this however, add C:\Windows\SysWOW64\ to your path variable.

      Thanks,
      Zach

    • Hi Gerhard!

      This is how to find your version of Microsoft Edge: https://support.microsoft.com/en-us/help/4027011/microsoft-edge-find-out-which-version-you-have

      Thanks,

      Zach

    • Hi Zach,

      I have to work against a strange web site. When you click a button doing navigation then first I get a page telling me 'Wait until processing is done …’. After that the site sends another page, this can be a new page or the previous page but now containing some error message.
      I decide to abstract all this stuff away creating a class ‘GinaBrowser’ and 'GinaSession’. In this classes you found all the settings and procedures needed to write ‘normal’ procedures for controlling the site.
      In this classes the IWebdriver is used as described in the documentation.
      My app works fine for weeks without any error, but after an update Win 10 forces me to do at 28.8.2019 it stucks.
      Now I need urgent help.
      Is there a chance to stop updates to prevent such issues in the future?

      I added the path to the PATH variable, but it is still the same. Is a reboot required? If so, I cant do this in the moment, maybe later at night.

      With best regards

      Gerhard

    • Hi Zach,
      here my Version:
      Microsoft Edge 44.18362.267.0
      Microsoft EdgeHtml 18.18362

      The Browser was part of the (dammed) update and than I have to execute some command, cause the WebDriver is now a 'feature’, whatever this means, fact is, it stucks.

      With best regards

      Gerhard

    • Hi Zach,
      I was able to da a restart after adding the path to the PATH variable, but still doesn’t work here, sorry. Exact the same Situation/error.

      With best regards

      Gerhard

    • Thanks for getting back to me!

      Let me provide you with a few things to try. The webdriver version you provided is the correct version for your version of Microsoft Edge, however, with the .NET selenium libraries, it is possible that you have downloaded the webdriver with a NuGet package and your project is using that one instead. The easiest solution to this is to provide a direct path to the webdriver:

      IWebDriver driver = new EdgeDriver("C:\Windows\SysWOW64\MicrosoftWebDriver.exe", yourEdgeOptions);

      This may already be how you are implementing driver initialization behind the scenes but it is worth me mentioning that this should be the way that you are creating the IWebDriver instance. I see that you are passing the driver location in this line:

      EdgeDriverService = EdgeDriverService.CreateDefaultService("C:\Windows\SysWOW64", “MicrosoftWebDriver.exe”)

      I see this method documented here: https://seleniumhq.github.io/selenium/docs/api/dotnet/html/M_OpenQA_Selenium_Edge_EdgeDriverService_CreateDefaultService_3.htm but I would say that this is not the most current way of initializing things. With the modern c# library (in contrast to Java) there is no need to initialize both a service and an IWebDriver.

      Perhaps, if possible, you could provide me with a copy of your project? If I am able to reproduce it locally then I can escalate this further.

      Thanks,
      Zach

    • I Zach,
      I can send you the whole project, but it is huge and the web site I work against isn’t a public site and I can’t grant public access to this site, sorry.
      I will try to make a little project showing the problem and you can use some web site and do just small changes.

      I can grant you access to the project via TeamViewer, so you can play with the project and have access to the original site. But this is only possible during the office here is closed, so we have to find an appointment.

      The project is a VB.net project, but all works fine before the update so it isn’t a issue with VB.net

      During I try to prepare a test project, please let me know, where to send.

      With best regards

      Gerhard

    • Hi Zach,
      we bought two new machines, we installed Win 10 Pro, we tried to get it as uptodate as possible and than I installed my app there. ==> exactly the same Problem,

      So I dont’t think that anybody is able to remote control EdgeHtml with the actual Driver (see Posts above) with SeleniumHQ using the .net Framework (4.7.xx)

      Sorry.

      I worked fine with the ‘old’ web Driver, which has to be installed by Hand and before the web Driver gets to be a ‘fature’ which stopped working after 28.8.2019.

      With best regards

      Gerhard

    • Hi Zach,
      after Setting up VS2017 on the new machine and preparing everything needed I developted a Little test program.

      Yes, you were right, the .Text property worked with some public web site. Unfortunately, when I worked against the site I Need to automate, I get the same error.

      Maybe the Problem is hidden in this site, so how can I step back to the old Version of Win 10, Edge and webdriver to get a running app again?

      With best regards

      Gerhard

    • Hi Zach,

      littel Addendum. Using the EdgeChromium Browser/WebDriver, I don’t get this error, unfortunately I get others …

      With best regards

      Gerhard

    • Hi Gerhard!

      I apologize for the delayed response. Since EdgeHTML is tied to the OS and Windows Updates, you need to revert to the previous version of Windows 10 in order to get the older version of Microsoft Edge. To do this, navigate to Settings > Update & Security > Recovery > “Go back to the previous version of Windows 10” Get Started.

      Let me know if this does not resolve the issue and I will continue to help you look for a solution.

      Thanks,

      Zach

    • Hi Zach,
      fine to hear from you again.
      I am in grat Troubles without a running app here, so I worked the whole day today and tried to use Firefox. I quick run into trobles, because the site unses 6 !!! certificates, which I successfully installed and used, but only in ‘manual’ mode. As soon as I try to control the browser with my app using SeleniumHQ it Fails with ‘Unsecure certificate …’ what a hack.
      Fortunately I found a Workaround and now I am happy again with a running app.
      I also set up a dedicated developer machine, here I can Play around and try your idea.
      But, sorry, not within the next days, I guess, this tests will be possible in the second half of October, cause I have to finish some work.
      I will be back with test esults asap, for sure.

      With best regards

      Gerhard

    • Hi Zach,
      I checked the Event log today and found something related to Edge & Update.
      There were three lines always appearing as a Group and in regular intervals. I made screenshots, but there is no Chance to add Images. If you can Show me, how to add two Images I can Show you which lines appear and the Content of the error message.

      With best regards

      Gerhard

    • Hi Gerhard!

      If you open up this case there should be an option to add attachments. However, if you are having issues, you can host them on a site such as https://imgur.com/ and provide me with the link.

      Thanks,
      Zach

    • … ok, sorry.
      But here is the link: https://imgur.com/a/FmS3Z30

      This Messages appear round the clock, all day.

      With best regards

      Gerhard

    • Hi Gerhard,
      I’ve been experiencing similar issues after upgrading to latest EdgeHTML, what I’ve noticed that playing around with PageLoadStrategy, e.g. setting it to “Normal” helps in some cases. I believe that something related to page loading strategy has been changed in one of last releases and it seems like “heavy” pages are now tough for EdgeDriver to work with. Also, as an option try to add some Thread.Sleep(s) just to see whether it helps (not suggesting it as a permanent solution).

    • Hi Gerhard!

      Thanks for providing me with the screenshots!

      Perhaps you cannot reach the Windows Update server. This may be the issue if you are on a domain-joined machine which is configured to download updates from a WSUS server. We can temporarily bypass the WSUS server if so. It would be strange if this were the problem because you were able to install the webdriver as a Windows Feature. This is normally only an issue upon installation but you never know. We can check your webdriver version to see if it matches up with your version of Microsoft Edge. 

      Navigate to C:/Windows/SysWOW64/
      Right click on MicrosoftWebDriver.exe
      Click “Properties”
      Navigate to the “Details” tab
      Please record the number under “File Version” or “Product Version” (They should be the same number) 
      Press Windows Key + r
      Type: winver
      Press enter
      Record your OS Build number
      Finally, record your Microsoft Edge version following these steps: https://support.microsoft.com/en-us/help/4027011/microsoft-edge-find-out-which-version-you-have

      The three numbers you recorded should contain the same version. For instance, on my machine, I recorded: File version 10.0.18362.1, OS Build 18362.356, and Microsoft Edge 44.18362.329.0. Since all three of these versions contain the number “18362” I know that they are all compatible.
      Can you verify your three versions? They may be different from mine.

      Would you also be willing to provide me with the events from the event log? In Event Viewer, select the events (multiple instances of these would be great), then press "Save Selected Events…". This will create an .evtx file. 

      For simplicity and privacy, will you email the .evtx file(s) to me at v-zaleon@microsoft.com?

      I appreciate your patience regarding this issue. Hopefully with the additional information and the minimal reproduction, I will be able to come to a resolution for your issue.

      Thanks,
      Zach

    • Hi Gerhard!

      For now, I will resolve this issue as "Not Reproducible". If you are still experiencing this problem then please feel free to reopen this issue with the information requested and I will resume my investigation.

      Thanks,
      Zach

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in