Closed mCzolko closed 10 years ago
lol damn, so it didn't work before? Since huxley would be trying to access stuff like driver.takeScreenshot()
of a function rather than the returned driver.
it didnt work before, sorry, my bad. I cannot continue quited driver any more (quit() method called on browser driver)
Ok. So this PR will fix everything? Also, might wanna write a test that injects a mock driver to see if everything goes alright.
yeah, it fix everything. And I wrote a test that injects driver before. But you are the only one who can run the test, just because I dont have the same environment as you. (All these commits are about testing with huxley in team :) )
Oh wait, yeah... Alright, pulling this in.
thank you
I forgot a little thing. When you run f.e.: record, recoding creates an instance of webdriver and after calls method quit() after recoding is complete. Then starts playback which creates a new instance of webdriver. Injected driver must be pass as anonymous function to get control of instances (as you can see in commit diff).