The web driver is hanging when go to the site that have Basic Authentication

Issue #13876421 • Assigned to Steven K.

Details

Author
Truc N.
Created
Sep 21, 2017
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

Can you please use the java code below to reproduce this issue:

public static void main(String[] args) {
    try {
        // set edge driver path
        System.setProperty("webdriver.edge.driver", "path\\MicrosoftWebDriver.exe");
        // create new EdgeDriver instance
        WebDriver webDriverEdge = new EdgeDriver();
        // go to site that have Basic authentication
        webDriverEdge.get("https://www.engprod-charter.net/");
        // selenium is hanging here
        // expected: the selenium run next step or throw an exception
        // TODO
    } catch (Exception e) {
        e.printStackTrace();
    }
    System.out.println("Done!");
}

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi Nguyen,

      I am not aware of a way to do this using WebDriver.  It appears to still be an open issue in the W3C spec.  Given that, it appears Selenium is not supporting a new way to do this since the inline user auth has been deprecated.

      Open Issues:
      https://github.com/w3c/webdriver/issues/385
      https://www.w3.org/Bugs/Public/show_bug.cgi?id=28802
      https://github.com/mozilla/geckodriver/issues/519

      Not implemented:
      http://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/Alert.html#authenticateUsing-org.openqa.selenium.security.Credentials-

      Possible workarounds:

      • Setup remote access to have your Java code call the robotil commands to run when needed during the webDriver test execution.
        https://codoid.com/robotil/

      Wish I had a better answer,

      Steve

    • Hi Steven,

      Thanks for your info. But my problem is the system that hanging when go to the “https://www.engprod-charter.net/” site. I can NOT do anything.

      Please help to double check.
      Thanks.

    • I get the issue now.  I re-read your original Repro Steps and realize now that given there is no support for Basic Authentication, there should be some way for webDriver to continue.  I was wondering why there were two posts on this topic.  Makes sense now. :-)

      Let me investigate that.

    • Hi Steven,

      there should be some way for webDriver to continue.
      Do you have any info/workaround for this.

      I was wondering why there were two posts on this topic.
      Please help to remove the other topic.

    • Stev:: There should be some way for webDriver to continue.
      Nguyen:: Do you have any info/workaround for this.

      Stev:: I was wondering why there were two posts on this topic.
      Nguyen:: Please help to remove the other topic.

    • Hi Steven,

      Steven:: There should be some way for webDriver to continue.
      Nguyen:: Do you have any info/workaround for this.
      

      Can you please help me.
      Thanks.

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

    Sign in