I have something like:
string result = Selenium.GetText("/html/body/form/div[2]");
if (result.Contains("test")
{
bool found = true;
}
else
{
found = false;
}
My problem is using result.Contains() returns false if there are tests, testing, etc. Also returns false for uppercase TEST, Test, etc
Is there another method that would match each character? Something like: result.Match("test");
Thanks for helping me out.
string.StartsWith is a good start, and then Regex if you need more power
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With