public void SetUp() { var agent = new NativeUnityDriverAgent(); _driver = new UnityDriver(agent); _testRootGo = new GameObject("TestRoot").transform; }
public void Setup() { var rootGO = new GameObject("rootGo"); _rootTransform = rootGO.transform; var canvasGO = new GameObject("Canvas", typeof(Canvas)); canvasGO.transform.SetParent(rootGO.transform); var eventSystemGO = new GameObject("EventSystem", typeof(EventSystem)); eventSystemGO.transform.SetParent(rootGO.transform); var testDropdownGO = new GameObject("TestDropdown", typeof(RectTransform), typeof(Dropdown)); testDropdownGO.transform.SetParent(canvasGO.transform); _dropdown = rootGO.GetComponentInChildren <Dropdown>(); _dropdown.options = new System.Collections.Generic.List <Dropdown.OptionData>() { new Dropdown.OptionData("None"), new Dropdown.OptionData("Option 1"), new Dropdown.OptionData("Option 2"), }; var agent = new NativeUnityDriverAgent(); _driver = new UnityDriver(agent); _dropdownElement = _driver.FindElement(By.Name("TestDropdown")); }
public void Setup() { var rootGO = new GameObject("rootGo"); _rootTransform = rootGO.transform; var canvasGO = new GameObject("Canvas", typeof(Canvas)); canvasGO.transform.SetParent(rootGO.transform); var eventSystemGO = new GameObject("EventSystem", typeof(EventSystem)); eventSystemGO.transform.SetParent(rootGO.transform); var testButtonGO = new GameObject("TestButton", typeof(RectTransform), typeof(Button)); testButtonGO.transform.SetParent(canvasGO.transform); _button = rootGO.GetComponentInChildren<Button>(); var agent = new NativeUnityDriverAgent(); var driver = new UnityDriver(agent); _buttonElement = driver.FindElement(By.Type<Button>()); }
public void Setup() { var agent = new NativeUnityDriverAgent(); _driver = new UnityDriver(agent); }