Forum Discussion

mortenb123's avatar
mortenb123
Copper Contributor
Jan 22, 2020
Solved

msedge chromium headless very chatty, where is the options

Where can I find the settings to make msedgedriver.exe less chatty in headless mode? is it compiled in debug mode? Really like to turn it off.

 

I use the following driver settings with python:

        elif os.environ['WEBDRIVER'] == 'Edge':
            options = webdriver.ChromeOptions()
            options.add_argument('--disable-infobars')
            options.binary_location = "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
            driver = webdriver.Chrome(options=options, executable_path="msedgedriver.exe")
        elif os.environ['WEBDRIVER'] == 'EdgeHeadless':
            options = webdriver.ChromeOptions()
            options.add_argument('--headless')
            options.binary_location = "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
            driver = webdriver.Chrome(options=options, executable_path="msedgedriver.exe")

 

here is the output, the first is edge chromium non headless, while the 2nd is edge chromium headless

/c/SharedArea/drivers/msedgedriver

DevTools listening on ws://127.0.0.1:58082/devtools/browser/e50c2d9c-a27f-4458-9975-d51eab72cf08
20200122-111127|INFO|C:\dist\work\selenium-allbrowsers\tools\seleniumtools.py:23|screenshot: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> -> Edge-screen.png
/c/SharedArea/drivers/msedgedriver

DevTools listening on ws://127.0.0.1:58176/devtools/browser/167d0fc4-9100-4b0f-b27f-274356543993
[0122/111145.432:INFO:CONSOLE(0)] "Images loaded lazily and replaced with placeholders. Load events are deferred. See <a href="https://go.microsoft.com/fwlink/?linkid=2048113" target="_blank">https://go.microsoft.com/fwlink/?linkid=2048113</a>", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111145.434:INFO:CONSOLE(0)] "An <img> element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See <a href="https://crbug.com/954323" target="_blank">https://crbug.com/954323</a>", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111145.773:INFO:CONSOLE(1)] "AST library loaded: 0.27.1", source: <a href="https://www.vg.no/vgc/cdn/js/libs/ast/0.27.1/ast.js" target="_blank">https://www.vg.no/vgc/cdn/js/libs/ast/0.27.1/ast.js</a> (1)
[0122/111146.188:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at <a href="http://www.vg.no/" target="_blank">http://www.vg.no/</a> was set without the `SameSite` attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with `SameSite=None`. You can review cookies in 
developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5088147346030592" target="_blank">https://www.chromestatus.com/feature/5088147346030592</a> and <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111146.194:INFO:CONSOLE(0)] "A cookie associated with a resource at <a href="http://adnxs.com/" target="_blank">http://adnxs.com/</a> was set with `SameSite=None` but without `Secure`. A future release of Microsoft Edge will only deliver cookies marked `SameSite=None` if they are also marked `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111147.152:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at <a href="http://acdn.adnxs.com/" target="_blank">http://acdn.adnxs.com/</a> was set without the `SameSite` attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with `SameSite=None`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5088147346030592" target="_blank">https://www.chromestatus.com/feature/5088147346030592</a> and <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111147.289:INFO:CONSOLE(0)] "A cookie associated with a resource at <a href="http://doubleclick.net/" target="_blank">http://doubleclick.net/</a> was set with `SameSite=None` but without `Secure`. A future release of Microsoft Edge will only deliver cookies marked `SameSite=None` if they are also marked `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111147.455:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at <a href="http://adnxs.com/" target="_blank">http://adnxs.com/</a> was set without the `SameSite` attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with `SameSite=None`. You can review cookies in 
developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5088147346030592" target="_blank">https://www.chromestatus.com/feature/5088147346030592</a> and <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
[0122/111147.875:INFO:CONSOLE(2)] "anx-mediation %cCONTINUE color: orange", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111147.910:INFO:CONSOLE(2)] "anx-mediation:  INIT --", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.231:INFO:CONSOLE(2)] "anx-mediation:  NOBID 628ms", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.250:INFO:CONSOLE(2)] "console.groupEnd", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.381:INFO:CONSOLE(2)] "anx-mediation: %cCONTINUE %ccreative ids 131072012 color: orange color: black", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.521:INFO:CONSOLE(2)] "anx-mediation:  CONTINUE 628ms", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.522:INFO:CONSOLE(2)] "console.groupEnd", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.523:INFO:CONSOLE(2)] "console.groupEnd", source: <a href="https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js" target="_blank">https://acdn.adnxs.com/ast/mediation/0.27.1/mediation.js</a> (2)
[0122/111148.565:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at <a href="http://track.adform.net/" target="_blank">http://track.adform.net/</a> was set without the `SameSite` attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with `SameSite=None`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5088147346030592" target="_blank">https://www.chromestatus.com/feature/5088147346030592</a> and <a href="https://www.chromestatus.com/feature/5633521622188032" target="_blank">https://www.chromestatus.com/feature/5633521622188032</a>.", source: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> (0)
20200122-111148|INFO|C:\dist\work\selenium-allbrowsers\tools\seleniumtools.py:23|screenshot: <a href="https://www.vg.no/" target="_blank">https://www.vg.no/</a> -> EdgeHeadless-screen.png
[0122/111148.755:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at <a href="http://adform.net/" target="_blank">http://adform.net/</a> was set without the `SameSite` attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with `SameSite=None`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <a href="https://www.chromestatus.com/feature/5088147346030592" target="_blank">https://www.chromestatus.com/feature/5088147346030592</a> and <a href="https://www.chromestatus.com/feature/" target="_blank">https://www.chromestatus.com/feature/</a>

 

  • mortenb123 thanks for the details. I'm glad to hear that it works in the Canary builds. The issue you are seeing is likely due to unfortunate timing of the Selenium 4 release and our Stable version of Edge.

     

    This issue should go away naturally with the next Stable release.

     

    -John

     

3 Replies

    • mortenb123's avatar
      mortenb123
      Copper Contributor

      Thanksjohnjansen 

      Using the canary browser v81.0.401.0 with the latest canary driver worked fine, I was using the follwing in stable:

          "msedge":  {
                         "webdriverver":  "79.0.313.0",
                         "path":  "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
                         "webdriverpath":  "C:\\SharedArea\\drivers\\msedgedriver.exe",
                         "webdriver":  "msedgedriver.exe",
                         "check":  true,
                         "ver":  "79.0.309.68"
                     }

       

      I'm not completely sure about the versioning some need to match the 3 first  tuples, but others work.

      Chrome is using to the first 2 tuples, while Firefox and Opera does not have any rules, just testing and appending a check=true if they work.

       

      • johnjansen's avatar
        johnjansen
        Former Employee

        mortenb123 thanks for the details. I'm glad to hear that it works in the Canary builds. The issue you are seeing is likely due to unfortunate timing of the Selenium 4 release and our Stable version of Edge.

         

        This issue should go away naturally with the next Stable release.

         

        -John