public override void RunAction(Act act) { //Handle all actions types Type ActType = act.GetType(); if (ActType == typeof(ActMobileDevice)) { MobileDeviceActionHandler((ActMobileDevice)act); return; } if (ActType == typeof(ActUIElement)) { mSeleniumDriver.HandleActUIElement((ActUIElement)act); return; } if (ActType == typeof(ActBrowserElement)) { mSeleniumDriver.ActBrowserElementHandler((ActBrowserElement)act); return; } if (ActType == typeof(ActSmartSync)) { mSeleniumDriver.SmartSyncHandler((ActSmartSync)act); return; } }