How to find element by start of id in WatiN?
Find.ById(x => x.StartsWith(rel)
Didn't work somehow. :/
How to find element by start of id in WatiN?
Find.ById(x => x.StartsWith(rel)
Didn't work somehow. :/
RegEx pwnage =>
var regex = new Regex(rel + ".*");
var links = Browser.ElementsOfType<Link>()
.Filter(Find.By("rel", regex));
Hi,
You probably need to check whether x has a value before calling StartsWith()
Find.ById(x => x != null && x.StartsWith(rel))
HtH, Jeroen