Beispiel #1
0
        public string GetGeneratedSymbols()
        {
            _driver.Navigate().GoToUrl("https://www.lipsum.com/");
            SetInfo(140);
            GenerateButton.Click();
            string s = GeneratedText.Text;

            return(s);
        }
        public void FillData(List <string> names)
        {
            foreach (var item in names)
            {
                InputField.Clear();
                InputField.SendKeys(item);
                GenerateButton.Click();

                Thread.Sleep(5000);

                string text = Driver.FindElement(By.XPath("/html/body")).Text;


                File.WriteAllText($"..\\..\\..\\IPs\\{item}.txt", text);

                // Console.WriteLine(text);
                Driver.Navigate().Back();
            }
        }