public void SearchForCustomer(string cusName) { // switch to default window before performing any action Browser.SwitchToDefaultWindow(); // switch to action frame Browser.SwitchToPageFrame(); // initialized page element Initialize(); // search for customer name CustomerSearch.InputTextIntoTheField(cusName); // press enter from keyboard KeyEnter.PressEnterkeyBoard(); //Browser.WaitForVisibilityOfElement(5000, Result); Browser.WaitForVisibilityOfElement(5000, "results"); }
private void Update() { if (Vector3.Distance(Player1.transform.position, Hammer.transform.position) < 1f) { KeyE.SetActive(true); if (!_player1OneTime) { _player1OneTime = true; StartCoroutine(DelayedSetActive(KeyQ)); } } if (Vector3.Distance(Player2.transform.position, Hammer.transform.position) < 1f) { KeyEnter.SetActive(true); if (!_player2OneTime) { _player2OneTime = true; StartCoroutine(DelayedSetActive(Key0)); } } }