selenium script for firefox,IE,Chrome authentication required

Hi All,

Please provide me script to authenticate Required Pop uP IN ie,cHROME,fIREFOX.

Iam not able to pass the values to text fields of Username,Password and click on OK button.

Please provide me exact script

Default Asked on October 23, 2015 in Selenium WebDriver.
Add Comment
  • 2 Answer(s)

    Hi rajeshkuchana,

    For authentication pop ups, Selenium cannot handles this kinds of scenario, you can however use Autoit for this or use Robotclass of Java.
    Please do follow this link for Handling windows Based Authentication Pop up in Selenium using Autoit.. 
    http://www.toolsqa.com/selenium-webdriver/autoit-selenium-webdriver/

     

    Regards,

    Luck

    Supporter Answered on October 26, 2015.
    Add Comment

    Hello,

    Try using authenticateUsing(Credentials credentials) method of Alert interface.

    https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/Alert.html#authenticateUsing-org.openqa.selenium.security.Credentials-

    Thanks,
    Shubham

    Train Answered on November 12, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.