Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added local xpi for testing. #88

Closed
wants to merge 1 commit into from

2 participants

@bonega

Because firefox-tests shouldn't rely on me being Semperos :)

@bonega bonega Added local xpi for testing.
Because firefox-tests shouldn't rely on me being Semperos :)
fdbad0a
@semperos
Owner

Absolutely :)

I'm going to accept this in spirit; I should have put an "example" properties file under VCS, and then gitignored the real one so that folks could have their own local setups. But I find it helpful, as a reminder, to have an example of where to find that XPI on a Mac, so I'd like to keep my example path in there for reference.

@semperos semperos closed this pull request from a commit
@semperos Fix #88 Update README section on testing
The properties.clj file is now ignored by Git, so users need to copy the example properties-example.clj to properties.clj and edit accordingly.
4545165
@semperos semperos closed this in 4545165
@bonega

I don't really like a test to be failing per default, when the extension isn't a dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2012
  1. @bonega

    Added local xpi for testing.

    bonega authored
    Because firefox-tests shouldn't rely on me being Semperos :)
This page is out of date. Refresh to see the latest.
View
BIN  resources/helloworld.xpi
Binary file not shown
View
1  resources/properties.clj
@@ -1,2 +1,3 @@
{:FIREFOX_EXTENSION_FIREBUG "/Users/semperos/Library/Application Support/Firefox/Profiles/mektwxbe.default/extensions/firebug@software.joehewitt.com.xpi"
+ :FIREFOX_EXTENSION_HELLOWORLD "resources/helloworld.xpi"
:this-file "takes precedence over a Java-style clj_webdriver.properties file."}
View
2  test/clj_webdriver/test/firefox.clj
@@ -117,7 +117,7 @@
(deftest firefox-should-support-extensions
(is (with-browser [tmp-dr (start {:browser :firefox
:profile (doto (ff/new-profile)
- (ff/enable-extension :firebug))}
+ (ff/enable-extension :helloworld))}
test-base-url)]
(log/info "[x] Starting Firefox with extensions.")
(driver? tmp-dr))))
Something went wrong with that request. Please try again.