add webdriver domain support and put domain setting back into the api tests