Grafi
Selenium C# text retrieval
Not sure where the sript fails
```
string code = "git config --global user.name "New Sheriff in Town"\r\ngit reset $(git commit- tree HEAD^{tree} -m "Legacy code")\r\ngit push origin master --force\r\n";
private readonly By goToPastedCodeInput = By.CssSelector("a.btn.-small");
private readonly By pastedCodeInput = By.CssSelector("pre");
public string GetPastedCodeInput()
{
Driver.FindElement(goToPastedCodeInput).Click();
return Driver.FindElement(pastedCodeInput).Text;
}
string inputedCode = HomePage.GetPastedCodeInput();
Assert.IsTrue(inputedCode.Contains(code),
$"Expected '{code}', but found '{inputedCode}'");
2 replies
LINQ
A sequence of non-empty strings of Latin alphabet characters stringList is given.
Among all strings of the same length, sorted in ascending order, select the last character from
each string, converting it to uppercase, and from the received characters, compose a string.
Arrange the resulting sequence of strings in descending order of their lengths.
73 replies