Answer the question
In order to leave comments, you need to log in
Are there custom analogues of the By.Text selector from Selenide in c#?
Selenide has a nice By.Text() selector, but selenide doesn't support c#. There is a port - NSelene, but it is incomplete and this selector is not in it. Very handy thing, but I can not find the information, help.
Answer the question
In order to leave comments, you need to log in
I did it in my fork - I'm preparing a PR - I wrote
to Yakov Kramarenko I don't have the time and resources yet to install Visual Studio with C# 6.0 and the version of nunit that nSelene wants...
my project is at
https://github.com/sergueik/powershell_selenium /tr...
Of course, you can just pull back the WebDriver and execute its commands directly
IWebElement element = Selene.GetWebDriver().FindElement(By.XPath("//*[contains(text(),'Hello World')]"));
StringAssert.Contains("Hello World!" , element.Text);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question