Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

f.QueryInterface is not a function (Selenium::WebDriver::Error::UnknownError) #6988

Closed
lukeis opened this issue Mar 4, 2016 · 9 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 6988

Selenium version: 2.39.0
Watir-webdriver: 0.6.4
OS: OS X Mavericks 10.9.1
Browser: Firefox
Browser version: 26
ruby version: 1.9.3p484

I have a cucumber/ruby/watir-webdriver project that runs fine on OS X 10.8.5 but need
to setup a new machine with the project. However this machine is using 10.9.1. When
I run my project on the new machine I get the following errors:

f.QueryInterface is not a function (Selenium::WebDriver::Error::UnknownError)
      [remote server] file:///var/folders/k2/t6yj80_s3p3byy9fc3jrn9h00000gn/T/webdriver-profile20140213-93954-1fpyqq0/extensions/fxdriver@googlecode.com/components/driver_component.js:8720:in
`FirefoxDriver.prototype.get'
      [remote server] file:///var/folders/k2/t6yj80_s3p3byy9fc3jrn9h00000gn/T/webdriver-profile20140213-93954-1fpyqq0/extensions/fxdriver@googlecode.com/components/command_processor.js:10831:in
`DelayedCommand.prototype.executeInternal_/h'
      [remote server] file:///var/folders/k2/t6yj80_s3p3byy9fc3jrn9h00000gn/T/webdriver-profile20140213-93954-1fpyqq0/extensions/fxdriver@googlecode.com/components/command_processor.js:10836:in
`DelayedCommand.prototype.executeInternal_'
      [remote server] file:///var/folders/k2/t6yj80_s3p3byy9fc3jrn9h00000gn/T/webdriver-profile20140213-93954-1fpyqq0/extensions/fxdriver@googlecode.com/components/command_processor.js:10778:in
`DelayedCommand.prototype.execute/<'

This webdriver-profile directory does not exist on the new machine but does on 10.8.5.
Not sure why that is. Not sure why I am getting a webdriver issue when I running watir-webdriver.
Is it because of a dependency? Tried posting this on the watir-webdriver github page
but was told it was a webdriver issue and should be posted here. Any help on how to
resolve this is much appreciated.

Thank you.

Reported by uscengineer on 2014-02-13 20:18:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2014-02-13 20:43:55

  • Labels added: Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I was able to get around this issue by doing the following:

Downgrade to FF v25
Install java on the mac
Download and run selenium server
After running it once I stopped the selenium server

Reran the my project tests and it worked fine.

Maybe the foxdriver is not getting installed properly?

How can I extract the foxdriver from selenium server? Is it the file named webdriver.xpi?
I can't ask everyone that needs to run this project to go through all these steps.


Thanks.

Reported by uscengineer on 2014-02-14 00:46:53

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Too many changes at once :)

Can you downgrade Firefox to version 25 only and retest with watir-webdriver in the
original OS configuration? (without Java and seleniuim server)

Reported by barancev on 2014-02-14 07:32:42

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I believe I did that first before trying with selenium server but I will try it again.
Once I do I will post the results.

Reported by uscengineer on 2014-02-14 20:22:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Any new informaton?

Reported by barancev on 2014-04-11 19:37:55

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Without seeing the actual code that caused this error, I can only take a wild guess.

OP might be using something like driver.get('www.seleniumhq.org') without specifying
the protocol, where it should be driver.get('http://www.seleniumhq.org') instead.

Code to reproduce OP's error:

  # Environment tested:
  # Linux Mint 16, Ruby 2.1.1, selenium-webdriver 2.41.0, Firefox 29
  require 'selenium-webdriver'

  driver = Selenium::WebDriver.for :firefox
  driver.get('www.seleniumhq.org')

Reported by yi.zeng.dev on 2014-05-22 09:02:33

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Coming back to leave an answer. Was able to fix this on a few other machines by downgrading
the browser only to FF25. We have since upgraded to FF28 without the issue reappearing.

Reported by uscengineer on 2014-06-23 07:32:13

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

OK, closing the issue as "probably fixed"

Reported by barancev on 2014-06-29 21:02:41

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:22:06

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant