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
107 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,130 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
1,491 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, 2020 in Selenium by Sirajul
• 58,990 points
9,230 views
+1 vote
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,520 points
5,036 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,520 points
8,022 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,700 points
138 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,130 points
177 views
0 votes
1 answer