We are currently running rspec tests that check the loading of specific libraries / models. In particular, we want to check that when creating the object, we return the correct Watir object: Watir :: Browser for FF and Chrome and Watir :: Safari for Safari.
We have already tried this: Unload the ruby ββclass, but it just removes the constant, which we donβt want.
This is usually not a problem, but due to compatibility issues with safariwatir and watir-webdriver it is not. He is mistaken:
superclass mismatch for class UnknownObjectException
And to βfixβ this, we basically have to choose which webdriver to load (from here the original logic that we plan to test)
Is there any way to solve this? Our tests pass, and not just in general. Therefore, we basically should skip the step only to get around the required problem.
source share