Skip to content

Xpath not working with Edge 138 + driver 138.0.3351.83 on Windows Server 2022 #202

@jochen-testingbot

Description

@jochen-testingbot

Hi,

We are looking into an issue where for example //*[@id='dropdownLanguageButton'] is not working (no elements found):

COMMAND FindElement {
   "using": "xpath",
   "value": "//*[@id='dropdownLanguageButton']"
}

Full log output: debug.txt

This is working correctly with Edge 137, but seems broken with Edge 138.

When comparing the edgedriver logs between these two, we see Runtime.callFunctionOn being called when it does work.

Runtime.callFunctionOn (id=24) (session_id=070214A5C56C00F8C91BC882D27CFA3B) DDC01D3FF604EE2DABA4E727B36C6FFD {
   "arguments": [  ],
   "awaitPromise": true,
   "functionDeclaration": "function(){ return (function() { // Copyright 2012 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum for WebD...",
   "serializationOptions": {
      "serialization": "deep"
   },
   "uniqueContextId": "827088815372103342.6457104223119823620

But not called when it does not work (Edge 138).

This is how we start:

   "capabilities": {
      "firstMatch": [ {
         "browserName": "MicrosoftEdge",
         "browserVersion": "138",
         "ms:edgeOptions": {
            "args": [ "--start-maximized", "--ignore-certificate-errors", "--disable-ssl-false-start", "--disable-popup-blocking", "--activate-on-launch", "--verbose", "--allow-running-insecure-content", "--disable-prompt-on-repost", "--no-first-run", "--test-type", "--disable-infobars", "--disable-prompt-on-repost", "--disable-gpu", "--disable-notifications", "--disable-save-password-bubble", "--lang=en", "--enable-remote-extensions", "--disable-blink-features=BlockCredentialedSubresources", "--disable-accelerated-2d-canvas", "--disable-accelerated-video-decode", "--headless=new", "--user-data-dir=C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\chrome-3777", "--no-proxy-server" ],
            "binary": "D:\\edge\\138\\msedge.exe",
            "prefs": {
               "user_experience_metrics.personalization_data_consent_enabled": true
            }
         },
         "platformName": "windows"
      } ]
   },

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions