Chibimagic's Weblog

Archive for July 2011

By default, Selenium Server looks for Firefox at /Applications/Firefox.app on Mac OS X and [Program Files]\Mozilla Firefox\firefox.exe on Windows. You can also run Selenium with browsers in non-default locations, as long as you specify the path to them.

The server-side configuration doesn’t seem to be documented anywhere, so I looked through the code to find the property to set: webdriver.firefox.bin

Mac OS X:
java -jar "[path to selenium server]" -Dwebdriver.firefox.bin="[path to Firefox.app]/Contents/MacOS/firefox-bin"

Example:
java -jar "/Applications/My Folder/selenium-server-standalone-2.2.0.jar" -Dwebdriver.firefox.bin="/Applications/My Folder/Firefox.app/Contents/MacOS/firefox-bin"


Windows:
java -jar "[path to selenium server]" -Dwebdriver.firefox.bin="[path to firefox.exe]"

Example:
java -jar "C:\Documents and Settings\MyUsername\Desktop\selenium-server-standalone-2.2.0.jar" -Dwebdriver.firefox.bin="C:\Program Files\Some Folder\Firefox\firefox.exe"

(of course, you can also use backslash to escape the paths instead of double quotes)

Advertisements

Something reminded me of Joyce Carol Oates today. I wanted to reread my first exposure to her, a dramatic monologue called “The Orange” from the collection of short plays “I Stand Before You Naked”.

The first time I heard it, I was in 10th grade accidentally walking in on a Speech and Debate practice of dramatic monologues. As soon as I heard it, I knew I needed more from that author. I thought perhaps my adolescence had colored the memory, but the monologue is every bit as poignant as I remember. More so, now that I can appreciate some of the other layers.

I reread another of her short stories: Lethal. Oates’ works are full of violence against women, much of it sexual. Joey Comeau’s are too, but more directed towards gay men. I’m fascinated with them for the same reason as “Memories of Matsuko”. They all share the theme of vulnerability and hope. There’s so much more to life than can be expressed in code or over IM, and living in the Valley it feels like I’m searching for beauty in the desert.

Perhaps my one mistake was choosing science over literature.