Hello! Doing some tests on my website using Selenium + C# . Like unpleasant history:
On the website there is a block in which 3-5 lines of text here in this format:
Periods of use the hard drive:
c 01.11.2011 on 21.02.2012: Датацентр1
c 28.03.2012 at 12.08.2017: Датацентр2
c 12.08.2017 in the moment: Датацентр3
I get these lines in a collection thus:
IList<IWebElement> Collection = Driver.FindElements(By.CssSelector("#checkHardDrive > div > ul.Periods li"));
After that deduce in the program information in WindowsForm in the text box in which Multilin:
foreach (IWebElement element in Collection )
In principle everything works, but there is one thing.
The date in the text box is displayed as c on 11/1/2011 2/21/2012, etc.
I.e. it is necessary to change the date format that is displayed in the text box.
Tell me, do I understand correctly that I need to take each item to parse it using regexps to numbers, write the value 1 to a variable, then parse the date itself, then another text, then another date, etc., and then separately to translate the date format and then all glued back into one line and output already in the text box?
Just suddenly there is some simpler solution?