xebia / Xebium

Xebium provides Selenium (webdriver) bindings for FitNesse, with Selenium-IDE support
http://xebia.github.com/Xebium/
Apache License 2.0
76 stars 62 forks source link

Extending Xebium with your own fixtures #120

Open raboof opened 10 years ago

raboof commented 10 years ago

Sometimes it'd be handy to write your own fixtures that can access the WebDriver instance created by our SeleniumDriverFixture, without having to explicitly pass that around in the FitNesse tests.

What would be the way to accomplish this? Does FitNesse already provide any infrastructure for this?

raboof commented 10 years ago

To whet your appetite: if we can find an elegant way to do this, I'd like to write a query table fixture that gets its data from an HTML table :).

jguglielmi commented 10 years ago

Arnout, I am not sure if this answers your question or not...probably not...but I worked on creating custom fixtures for sikuli that combine selenium and sikulidrivers. A hybrid fixture if you will. Hopefully, this can lead you down the right path. I'd also recommend talking to ejakubowski. He really gave me some good ideas to solve these issues.

1.defaultwebdriversupplier.java as a bypass. I actually incorporated the sikuliwebdrivers into OASIS to call them directly under the org.sikuli directory.

  1. sikuliwebdriverfixture into xebium modeled on the seleniumdriverfixture and added custom entries to it using javascriptexecutor.

https://github.com/jguglielmi/OASIS-Maven/tree/master/src/main/java/org/sikuli/webdriver

https://github.com/jguglielmi/OASIS-Maven/blob/master/src/main/java/com/xebia/incubator/xebium/DefaultWebDriverSupplier.java

https://github.com/jguglielmi/OASIS-Maven/blob/master/src/main/java/com/xebia/incubator/xebium/SikuliWebDriverFixture.java