Encounter a problem today, when running the project, found this problem:
Org.openqa.selenium.webdriverexception:f.queryinterface is not a function
Command duration or timeout:30.17 seconds
Build info:version: ' 2.45.0 ', Revision: ' 5017cb8e7ca8e37638dc3091b2440b90a1d8686f ', Time: ' 2015-02-27 09:10:26 '
System info:host: ' BJWS145064 ', IP: ' 169.254.24.166 ', Os.name: ' Windows Vista ', Os.arch: ' x86 ', os.version: ' 6.1 ', JAVA.V Ersion: ' 1.6.0_11 '
Session id:d5feee27-45bb-4a98-aa04-8ad84038e24b
Driver Info:org.openqa.selenium.firefox.FirefoxDriver
capabilities [{platform=windows, Acceptsslcerts=true, Javascriptenabled=true, Browsername=firefox, Rotatable=false, Locationcontextenabled=true, version=36.0.1, Cssselectorsenabled=true, Databaseenabled=true, HandlesAlerts=true, Nativeevents=false, Webstorageenabled=true, Applicationcacheenabled=true, takesscreenshot=true}]
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (Unknown Source)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Unknown Source)
At Java.lang.reflect.Constructor.newInstance (Unknown Source)
At Org.openqa.selenium.remote.ErrorHandler.createThrowable (errorhandler.java:204)
At org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed (errorhandler.java:156)
At Org.openqa.selenium.remote.RemoteWebDriver.execute (remotewebdriver.java:599)
At Org.openqa.selenium.remote.RemoteWebDriver.get (remotewebdriver.java:304)
At TestModule1.Test001.test001 (test001.java:23)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
At Java.lang.reflect.Method.invoke (Unknown Source)
At Org.junit.runners.model.frameworkmethod$1.runreflectivecall (frameworkmethod.java:45)
At Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:15)
At org.junit.runners.model.FrameworkMethod.invokeExplosively (frameworkmethod.java:42)
At Org.junit.internal.runners.statements.InvokeMethod.evaluate (invokemethod.java:20)
At Org.junit.internal.runners.statements.RunBefores.evaluate (runbefores.java:28)
At Org.junit.internal.runners.statements.RunAfters.evaluate (runafters.java:30)
At Org.junit.runners.ParentRunner.runLeaf (parentrunner.java:263)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:68)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:47)
At Org.junit.runners.parentrunner$3.run (parentrunner.java:231)
At Org.junit.runners.parentrunner$1.schedule (parentrunner.java:60)
At Org.junit.runners.ParentRunner.runChildren (parentrunner.java:229)
At org.junit.runners.parentrunner.access$000 (parentrunner.java:50)
At Org.junit.runners.parentrunner$2.evaluate (parentrunner.java:222)
At Org.junit.runners.ParentRunner.run (parentrunner.java:300)
At Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:49)
At Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197)
caused By:org.openqa.selenium.webdriverexception:f.queryinterface is not a function
Build info:version: ' 2.45.0 ', Revision: ' 5017cb8e7ca8e37638dc3091b2440b90a1d8686f ', Time: ' 2015-02-27 09:10:26 '
System info:host: ' BJWS145064 ', IP: ' 169.254.24.166 ', Os.name: ' Windows Vista ', Os.arch: ' x86 ', os.version: ' 6.1 ', JAVA.V Ersion: ' 1.6.0_11 '
Driver Info:driver.version:unknown
At <anonymous Class>. FirefoxDriver.prototype.get (file:///C:/Users/145064/AppData/Local/Temp/ Anonymous5488289901357885105webdriver-profile/extensions/[email protected]/components/driver-component.js:10132 )
At <anonymous Class>. delayedcommand.prototype.executeinternal_/h (file:///C:/Users/145064/AppData/Local/Temp/ Anonymous5488289901357885105webdriver-profile/extensions/[email Protected]/components/command-processor.js : 12274)
At <anonymous Class>.fxdriver. Timer.prototype.settimeout/<.notify (file:///C:/Users/145064/AppData/Local/Temp/ Anonymous5488289901357885105webdriver-profile/extensions/[email protected]/components/command-processor.js:603)
Workaround:
Encountering this problem the URL is not written correctly
When the URL is filled with https://....
Org.openqa.selenium.webdriverexception:f.queryinterface is not a function Command duration or timeout: