public void Attention(bool doit, ClickMe prefab)
    {
        ClearAtt();
        if (!doit) return;

        attention = (ClickMe)Instantiate(prefab, transform.position, Camera.main.transform.rotation);
    }
Exemplo n.º 2
0
 public void test()
 {
     ClickMe.Click();
     Thread.Sleep(800);
     Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
     ClosePopUp.Click();
 }
 public void ClearAtt()
 {
     if(attention != null)
     {
         Destroy(attention.gameObject);
         attention = null;
     }
 }
Exemplo n.º 4
0
 public void test()
 {
     Password.Click();
     PasswordA.Click();
     SetMethods.EnterText(PasswordA, "ABC");
     ClickMe.Click();
     Thread.Sleep(800);
     Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
     ClosePopUp.Click();
 }
Exemplo n.º 5
0
 public void test()
 {
     ClickMe.Click();
     PropertiesCollection.driver.SwitchTo().Window(PropertiesCollection.driver.WindowHandles.Last());
     Thread.Sleep(800);
     PropertiesCollection.driver.Close();
     PropertiesCollection.driver.SwitchTo().Window(PropertiesCollection.driver.WindowHandles.First());
     Thread.Sleep(800);
     Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
     ClosePopUp.Click();
 }
Exemplo n.º 6
0
        public void test()
        {
            string text = ClickMe.Text;

            while (!(text.Equals("ENOUGH")))
            {
                ClickMe.Click();
                text = ClickMe.Text;
            }
            ClickMe.Click();
            Thread.Sleep(800);
            Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
            ClosePopUp.Click();
        }
Exemplo n.º 7
0
        public void test()
        {
            ClickMe.Click();
            string              text       = GetMethods.GetTextValue(GenerateText);
            SelectElement       selectList = new SelectElement(ddl);
            IList <IWebElement> options    = selectList.Options;

            for (int j = 2; j < options.Count; j++)
            {
                string optionText = options[j].Text.ToString();
                Console.WriteLine("{0} : {1}", text, optionText);
                if (text.Equals(optionText))
                {
                    SetMethods.SelectDropDown(ddl, optionText);
                    break;
                }
            }
            Submit.Click();
            Thread.Sleep(800);
            Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
            ClosePopUp.Click();
        }