In some exceptional changes, it may be required to change the driver.
To change the desired capabilities during test execution, you need to call the setup method of WebDriverTestBase class as below.
For example if you want to switch to appiumDriver while executing on any other driver, call the following steps.
String desiredCaps =
new WebDriverTestBase().setUp(null, desiredCaps);