How to solve WebDriverException: f.QueryInterface is not a function

Hello, Welcome to Selenium tutorial, today we will discuss how to solve WebDriverException: f.QueryInterface is not a function.

You will get this exception frequently while working with Selenium so we will discuss this exception in detail.

Please refer below post if you are new in Selenium.

1- How to handle exception in Selenium.

2- Different Run time exception in Selenium.

We have get method in Selenium to open particular URL.

 

If you run above program then you will get below exception:

Exception in thread “main” org.openqa.selenium.WebDriverException: f.QueryInterface is not a function
Command duration or timeout: 62 milliseconds.

WebDriverException: f.QueryInterface is not a function

WebDriverException: f.QueryInterface is not a function

 

 

 

WebDriverException: f.QueryInterface is not a function

While passing URL in Selenium we have to pass protocol as well so that Selenium can understand which protocol to use while communicating.

There are so many protocols available some of them are

FTP, SMTP, HTTP etc.

 

Solution:

While passing URL we have to mention HTTP also.

Thanks for visiting. Please share this article with other if you find this article interesting.

Have a nice day 🙂

Like Facebook Page for more updates-Learn-Automation facebook page

Join Selenium Group for discussion and queries- Learn-Automation group

 

 

Leave a Reply