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
42 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,010 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,170 points
117 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
2,642 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
5,618 views
0 votes
1 answer

How do we use assert() in Selenium WebDriver?

So, for implementing Assert(), you need to ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,510 points
5,209 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,660 points
52 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,010 points
81 views
0 votes
1 answer