Xebium icon indicating copy to clipboard operation
Xebium copied to clipboard

Extending Xebium with your own fixtures

Open raboof opened this issue 11 years ago • 2 comments

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 avatar Apr 30 '14 12:04 raboof

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 :).

raboof avatar May 05 '14 13:05 raboof

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

jguglielmi avatar May 06 '14 15:05 jguglielmi