How do you handle https website in selenium?

0 votes
How do you handle https website in selenium?
Jun 24 in Selenium by Namit
14 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 by Anvi
• 10,510 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

6 days ago in Selenium by Vaishnavi
• 1,080 points
11 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,050 points
1,622 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,050 points
3,389 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,050 points
2,894 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
• 27,620 points
34 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 in Selenium by Anvi
• 10,510 points
34 views
0 votes
1 answer