How do you handle https website in selenium?

0 votes
How do you handle https website in selenium?
Jun 24, 2019 in Selenium by Namit
53 views

1 answer to this question.

0 votes

Hi Namit, you can handle https websites by changing the Firefox profile this way:

Syntax:
public class HTTPSSecuredConnection {
  public static void main(String[] args){
      FirefoxProfile profile = new FirefoxProfile();
      profile.setAcceptUntrustedCertificates(false);
      WebDriver driver = new FirefoxDriver(profile);
      driver.get("url");
  }
}
answered Jun 25, 2019 by Anvi
• 14,050 points

Related Questions In Selenium

0 votes
0 answers

How do you get all the child elements in Selenium WebDriver?

I'm currently working on Selenium with Python. ...READ MORE

Jul 15, 2019 in Selenium by Vaishnavi
• 1,180 points
415 views
0 votes
1 answer

How do you automatically download a Pdf with Selenium Webdriver in Python.

Try this code, from selenium import webdriver download_dir = ...READ MORE

answered Mar 5 in Selenium by Sirajul
• 54,190 points
2,555 views
0 votes
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,510 points
3,767 views
0 votes
1 answer

How to handle Pop-up in Selenium WebDriver using Java

Actually, its pretty simple. Use this code ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,510 points
6,940 views
0 votes
1 answer

How to add https security for Node js?

You need to add the key and cert to the createServer function. const options ...READ MORE

answered Aug 10, 2018 in Blockchain by digger
• 26,670 points
77 views
0 votes
1 answer

How to handle multiple windows in Selenium Webdriver?

Hey Ritika, you can handle multiple windows ...READ MORE

answered May 24, 2019 in Selenium by Anvi
• 14,050 points
114 views
0 votes
1 answer