• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Selenium tips and tricks / How to solve WebDriverException: f.QueryInterface is not a function

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

April 13, 2015 by Mukesh Otwani Leave a Comment

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.

driver.get(“www.google.com”);

 

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.

driver.get(“http://www.learn-automation.com”);

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

 

 

Filed Under: Selenium tips and tricks Tagged With: Selenium Exception

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?